Skip to content

KattisLej/django_tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

Django tutorial

Following a Django MDN tutorial to learn more about DJango. Django admin Django site

Description

The purpose of this project is for learning:

  • Learning Django in general
  • python
  • Using virtual environments
  • Creating a web application with Django

Dependencies

  • python3
  • pip3
  • virtualenvwrapper

Executing program

  • Enter virtual evironment:
workon <virtual_environment_name>
  • Start the server:
python3 manage.py runserver

Adding data to db

Use script add_data.py and run it as follows:

python add_data.py

And to add book instances:

python add_book_instances.py

Borrow some books, which will be assigned to two users, so the username has to be in the db.

python loan_books_script.py

Acknowledgments

The tutorial

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published