CarlosLugones / ptb-django-cookiecutter

A simple cookiecutter to create Python Telegram bots, wrapped with Django.
https://ptb-django-cookiecutter.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
25 stars 10 forks source link

New project structure #8

Closed ragnarok22 closed 3 years ago

ragnarok22 commented 3 years ago

New project structure. More clean and easy to maintain. Run the following commands:

cookiecutter ptb-django-cookiecutter
cd myproject_name
touch .env  # put in this file SECRET_KEY and TELEGRAM_TOKEN
python3 manage.py makemigrations  # create the migrations for models
python3 manage.py migrate  # insert the migrations into database
python3 manage.py runbot  # exceture the bot!
CarlosLugones commented 3 years ago

@ragnarok22 thanks for your contributions! :clap:

PR merged, but we need to make some changes before promoting this to next version.