Skip to content

michaelmatasyants/sensive_blog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog on Django - server side

How to run

To run the blog, you should already have Python 3 installed.

  • Download the code
  • Install the dependencies with the pip install -r requirements.txt command
  • Start the server with the command python3 manage.py runserver.

After that go to 127.0.0.1:8000, to see the home page.

Environment variables

Some of the project settings come from environment variables. To define them, create a .env file next to manage.py and write the data there in this format: VARIABLE=value.

These settings are not required to start the project, the values are already set by default.

The following variables are available:

  • DEBUG - debug mode. Set True to see debugging information in case of an error. Turned off by a value of False.
  • SECRET_KEY - the secret key of the project. For example: erofheronoirenfoernfx49389f43xf3984xf9384.
  • ALLOWED_HOSTS - see Django documentation.
  • STATIC_URL - the default is '/static/'. What is STATIC_URL.
  • STATIC_ROOT - defaults to 'None', i.e., the current folder. What is STATIC_ROOT.
  • MEDIA_URL - defaults to '/media/'. What is MEDIA_URL.
  • MEDIA_ROOT - The default is 'media'. What is MEDIA_ROOT.

Project Goals

The code is written for educational purposes

About

Blogs backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 51.8%
  • HTML 48.2%