Skip to content

friquette/OC_Projet_09

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

OC_Projet_09

Développez une application web en utilisant Django

Set up the project

This project runs in python 3

Make a copy of this project on your hard drive
git clone https://github.com/friquette/OC_Projet_09.git

Go in the root project and create a virtual environment
cd OC_Projet_09
python -m venv env

Activate your virtual environment

  • On Windows env\Scripts\activate.bat
  • On Mac OS/Linux source env/bin/activate

Go in the project folder cd litreview

Install the packages
pip install -r requirements.txt

How to use it

For the first time you are using the application, migrate the tables in the database
python manage.py migrate

Run your server
python manage.py runserver

And go to localhost:8000 on your web browser.

The database will be created in the root application folder and is named db.sqlite3
All the images uploaded by the users will be saved in a media folder in the root application folder.

Before sending the application online, open the settings.py file in litreview folder, and change the DEBUG = True to DEBUG = False

To interrupt your server, simply hit CTRL+C in your command prompt.

Admin part

To create an admin user, go to the root application folder and enter: python manage.py createsuperuser and follow the instructions.

To access the admin site page, go to localhost:8000/admin in your web browser.

About

Développement d'une appli web avec Django

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published