Skip to content

sprezz-arthur/xix-authors

Repository files navigation

Code style: black

French Authors from the 19th century

Installation

Install graphviz:

sudo apt install graphviz

Install all python dependencies:

pip install -r requirements.txt

Docker Setup (for local development)

  1. Check if Docker Desktop is running

  2. Run docker compose up --build --detach --remove-orphans to initialize the docker container (if you're using old docker, you might need to use docker-compose with an hyphen)

  3. Navigate to http://localhost:8000 to check if everything is running smoothly

  4. Use the command docker exec -it django sh to open the command prompt inside the container you've just created!

Django Setup (for local development)

Inside the docker container:

  1. Run migrate to populate local database with required tables:

python manage.py migrate

  1. Create your superuser:

python manage.py createsuperuser

  1. Start Django debug server:

python manage.py runserver

  1. Check if it works by accessing localhost:8000 in your browser.

Welcome to the Django!

⚠️PS: if you want to go straight to django-admin, try localhost:8000/admin instead.⚠️

Create an EDR graph

For a png file run:

python manage.py graph_models bibliotheque -o edr.png

For a svg file run:

python manage.py graph_models bibliotheque -o edr.svg

Collaborators

Database Available At:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors