django_socio is an initial Django project enabling communication between two individuals.
- Create a project root directory in your local machine
mkdir <project_name>
-
Clone the project in this <project_name> directory (you can use ssh also)
-
Create your virtual environment, activate that environment and install all the requirements
pip install -r requirements.txt
- collect all static files (if run for the first time it creates the assests folder in <project_name> directory)
django-admin collectstatic
- create
env.py
inside<project_name/django_project/config/settings/
. Copy fromenv.example.py
for the first time and update settings as your requirements. - Remember
<project_name>/django_project
is the directory name from where you will run the server.
- Rename the
django_project
by running following command (from inside of your Django environment):
django-admin rename_project <new_name_for_django_project>
- run migrations
django-admin migrate
- create superuser
django-admin create_superuser
<project_name>
|
|---assets (folder created once static files are collected)
|
|---django_project
| |---apps
| | |---core (custom app)
| | |---...<other apps>...
| | |---urls.py
| |
| |---config
| | |---settings
| | | |---base.py
| | | |---env.py (ignored by git)
| | | |---env.example.py
| | |
| | |---asgi.py
| | |---urls.py
| | |---wsgi.py
| | |
| | |static_files (all static files we use in development)
| | |---base (project as a whole specific static files)
| | | |---css
| | | |---img
| | | |---js
| | |---core (my custom app specific)
| | | |---css
| | | |---img
| | | |---js
| | |
| |---templates
| | |---core (custom app specific)
| | |---<other app specific templates>
| | |---base.html (included basics of jquery and bootstrap)
| |
| |---.gitignore
| |---manage.py
| |---requirements.txt
|
|---media (folder created once items were uploaded)
|---db.sqlite3