KhushbuThapa / Socio

Social Networking App in Python Django Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django_socio_app

django_socio is an initial Django project enabling communication between two individuals.

Getting started with this boilerplate:

(eg. in any Linux distribution, you can follow a similar process in another os also.)
  1. Create a project root directory in your local machine
mkdir <project_name> 
  1. Clone the project in this <project_name> directory (you can use ssh also)

  2. Create your virtual environment, activate that environment and install all the requirements

pip install -r requirements.txt
  1. collect all static files (if run for the first time it creates the assests folder in <project_name> directory)
django-admin collectstatic
  1. create env.py inside <project_name/django_project/config/settings/. Copy from env.example.py for the first time and update settings as your requirements.
  2. Remember <project_name>/django_project is the directory name from where you will run the server.

optional:

  1. Rename the django_project by running following command (from inside of your Django environment):
django-admin rename_project <new_name_for_django_project>
  1. run migrations
django-admin migrate
  1. create superuser
django-admin create_superuser

Folder Structure

<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

About

Social Networking App in Python Django Framework

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:HTML 51.9%Language:Python 40.8%Language:CSS 4.9%Language:JavaScript 2.4%