This site made for understanding how to use django functional programing.
Development mode
- enter command "export DJANGO_SETTINGS_MODULE=django_basic.settings.dev"
- python manage.py makemigrations
- python manage.py migrate
- python manage.py runserver 0.0.0.0:8000
Product mode
- enter command "export DJANGO_SETTINGS_MODULE=django_basic.settings.prod"
- python manage.py makemigrations
- python manage.py migrate
- python manage.py runserver 0.0.0.0:8000
manage.py and wsgi.py update like bellow
Development mode
- os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_basic.settings.dev')
Product mode
- os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_basic.settings.prod')
- Make a view only using FBV.
- Using manytomanyfiled. There is only "related_name" option example and no "throught" option example in this app.
- "form" and "modelform" are used differently. you can understand both cases in the board's forms.py.
- Manytomanyfield is of type "select" in modelform. So if you want it as input type, you need to override it with "init" function. And the "required" option is the same.
- When developing the actual service, we do not delete data from the database Use the state delete tag to handle it. Shows how easy it is to model a board using the model from the Inheritance of helpers app.
- This project handles logins, writes, updates, deletes, replies, session handling, tags, likes, thumbnails, file uploads and more.
- Developers can create environments for tests, products, AWS deployments, etc. with separate "config" files and "env" files.
- This project doesn't use django's "user" model. Using Custom model.