Skip to content

all-about-django/django-cbv-using-argon-theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

djlibrary

This project is built using Django and demonstrates the use of Class Based Views using Class Based Views in Django.

It extends over the tutorial and uses Argon Design System and Argon Dashboard to build CRUD interfaces for a model.

Snaps

  • ListView

listview

  • CreateView

createview

  • DetailView

detailview

  • UpdateView

updateview

  • DeleteView

deleteview

Setup Instructions

First make sure that you have the following installed.

  • Python 3 and virtualenv

Now do the following to setup project

# assuming that the project is already cloned.

cd djlibrary

# one time
virtualenv -p $(which python3) pyenv

source pyenv/bin/activate

# one time or whenever any new package is added.
pip install -r requirements/dev.txt

# update settings
cp src/djlibrary/settings/local.sample.env src/djlibrary/settings/local.env

# generate a secret key or skip(has a default value) and then replace the value of `SECRET_KEY` in environment file(here local.env)
./scripts/generate_secret_key.sh

# update relevant variables in environment file

# run migrate
cd src
python manage.py migrate

To access webserver, run the following command

cd src
python manage.py runserver

Credits

Special Thanks to Creative Tim for awesome Argon Design System

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published