Skip to content

slmnkankal/django_weather_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spin up the project

  • Clone the template project to your local:
git clone https://github.com/bluehackrafestefano/WeatherAppStarterTemplate.git
  • Use the folder created after clone as the project main directory, cd to this new directory.

  • Create virtual environment as a best practice:

python3 -m venv env # for Windows or
python -m venv env # for Windows
virtualenv env # for Mac/Linux or;
virtualenv env -p python3 # for Mac/Linux
  • Activate scripts:
.\env\Scripts\activate  # for Windows
source env/bin/activate  # for MAC/Linux
  • See the (env) sign before your command prompt.

  • Install dependencies:

pip install -r requirements.txt

Secure your project

.gitignore

A standard .gitignore file has already added to the project root directory.

python-decouple

  • Create .env file on root directory. We will collect our variables in this file.
SECRET_KEY=o5o9...
  • Migrate:
python3 manage.py migrate  # or;
python manage.py migrate  # or;
py manage.py migrate
  • Create superuser:
py manage.py createsuperuser  # or;
python manage.py createsuperuser  # or;
python3 manage.py createsuperuser
  • Delete .git folder.

  • From now on you can send you project to the github.

  • Run the server and see the initial setup:

py manage.py runserver  # or;
python manage.py runserver  # or;
python3 manage.py runserver

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published