Skip to content

Template of Django web framework in Python using HTML, JS and SASS.

License

Notifications You must be signed in to change notification settings

max-ghz/django-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Application

Basic template of Django web framework in Python using HTML, JS and SASS.

Screenshot

website1

website2

website3

Building

  1. Make sure you have python3.8 (or higher) and clone this repository:
> git clone https://github.com/maxu-s/spp-website
> cd spp-website
  1. Create a virtual environment then install the required packages:
> python -m venv venv
> pip install -r requirements.txt
  1. Activate virtual enviroment from your terminal system:
> cd path/to/your/repository
> source venv/bin/activate   # on Linux/macOS
> venv\Scripts\activate      # on Windows
  1. To keep sensitive information out of the code, environment variables are stored in a .env file. You will need to create this file manually. Create a file named .env in the root of your project (where manage.py is located) and add the following content to it:
DJANGO_SECRET_KEY='print-your-web-key-here'
DEBUG=True
ALLOWED_HOSTS=localhost,127.0.0.1,
  1. Replace print-your-web-key with your actual Django SECRET_KEY. Generate that key using:
> python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'
  1. Run the following commands to apply the migrations and start the server:
> python manage.py collectstatic
> python manage.py migrate
> python manage.py runserver

About

Template of Django web framework in Python using HTML, JS and SASS.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published