Skip to content

Unfinished FreeCodeCamp's Django marketplace project

Notifications You must be signed in to change notification settings

renatocfrancisco/django-fcc-marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-fcc-marketplace

Django TailwindCSS Code style: black Flake8

Django project created by CodeWithStein, available in FreeCodeCamp's Learn Django by Building an Online Marketplace

Commands

pip

Remember to run pip install -r requirements.txt to install dependencies. requirements-dev.txt for development dependencies.

Also py -m venv venv to create a virtual environment. Then activate it with .\venv\Scripts\activate.

django

Project started with django-admin startproject puddle after pip install django

  • Generated /core with py .\manage.py startapp core
  • Generated /item with py .\manage.py startapp item
  • To create migrations, run py .\manage.py makemigrations
  • To apply migrations, run py .\manage.py migrate
  • To run server, run py .\manage.py runserver
  • To create user for admin page, run py .\manage.py createsuperuser and enter your credentials.
  • To access admin page, go to /admin

formatting

You can use flake8 to check for PEP8 compliance. You can use black (ex: black .) to format your code.

Dev Commentary

First time messing with Django. This repository is just a way to say that I know something of this framework. 😐

The responsive aspect of the project is not existent. I just wanted to learn the basics of Django. The tutorial's title says "Python Tutorial for Beginners". That's funny.

Video timestamp: 1:50:44