Behold My Awesome Project!
- Postgres (Version 11.XX or higher)
- Python (Version 3.6 or higher)
- wkhtmltopdf
First, create a role and a database, the database has to be owned by the role I create or the role must have permissions on it. Remember to save the role's password.
create role username_name with createdb login encrypted password 'password';
create database database_name owner username_name;
On the project's path run:
$ pip install -r requirements/local.txt
On the project's path create a file named .env
with the following content
DATABASE_URL=postgres://username_name:password@127.0.0.1:5432/database_name
On the project's path run:
$ python manage.py migrate
On the project's path run:
$ python manage.py runserver
Moved to settings
-
To create a normal user account, just go to Sign Up and fill out the form. Once you submit it, you'll see a "Verify Your E-mail Address" page. Go to your console to see a simulated email verification message. Copy the link into your browser. Now the user's email should be verified and ready to go.
-
To create an superuser account, use this command::
$ python manage.py createsuperuser
For convenience, you can keep your normal user logged in on Chrome and your superuser logged in on Firefox (or similar), so that you can see how the site behaves for both kinds of users.
- Install Heroku
- Login to Heroku
- In the root path, execute
heroku create
git push heroku master
heroku open