Skip to content

stanmain/stasians_help

Repository files navigation

STASIAN`S HELP

Introdution

This project is a platform for placing orders for the work of students. The project is designed to explore the capabilities of the Django framework and acquire practical skills.

stasianshelp.herokuapp.com

screenshot

Installing

  1. Create a Python 3.7 virtualenv;
  2. Install dependencies:

$ pip install -r requirements.txt

  1. Create settings file (development.py, test.py and production.py) in settings module;
  2. Create tables:

$ python manage.py migrate

  1. Create superuser:

$ python manage.py createsuperuser

Development

Create the development.py settings file with the following defined variables:

from .base import *

SECRET_KEY = <complex and long secret key>
EMAIL_HOST = <example 'smtp.gmail.com'>
EMAIL_HOST_USER = <your username>
EMAIL_HOST_PASSWORD = <your password>
DEFAULT_FROM_EMAIL = <your email>

To start the development server:

$ python3 manage.py runserver --settings=stasians_help.settings.development",

Testing

Create the test.py settings file with the following defined variables:

from .development import *

TEST_USERNAME = <admin username for tests>
TEST_PASSWORD = <admin password for tests>

To running all tests:

$ python3 manage.py test --settings=stasians_help.settings.test"

Deployment

Create the development.py configuration file with the following declared variables:

from .base import *

SECRET_KEY = <complex and long secret key>
EMAIL_HOST = <example 'smtp.gmail.com'>
EMAIL_HOST_USER = <your username>
EMAIL_HOST_PASSWORD = <your password>
DEFAULT_FROM_EMAIL = <your email>

DEBUG = False

ALLOWED_HOSTS = ['<your host>']

Built with

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Start of development of own site for performance of student's works to order.

Topics

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors