Code Monkey home page Code Monkey logo

todoist's Introduction

pip install django
pip install djangorestframework

create new "todoproject"

django-admin startproject todoproject
cd todoproject

Creates a Directory: It creates a directory named todoproject. Creates Subdirectories and Files: Inside todoproject, it creates the following structure:

todoproject/
manage.py
todoproject/
init.py
settings.py
urls.py
wsgi.py

manage.py: A command-line utility that lets you interact with this Django project. You’ll use it to run commands like runserver, migrate, and startapp.
init.py: An empty file that tells Python this directory should be considered a Python package.
settings.py: Contains all the configuration for your Django project.
urls.py: The URL declarations for this Django project; a “table of contents” of your Django-powered site.
wsgi.py: An entry-point for WSGI-compatible web servers to serve your project.

Inside the project directory, create a new app called todo:

python3 manage.py startapp todo

It will create: todo/ init.py admin.py apps.py migrations/ init.py models.py tests.py views.py

nano todoproject/setting.py
nano todo/models.py
python manage.py makemigrations
python manage.py migrate
touch todo/serializers.py
nano todo/serializers.py
edit todo/views.py
touch todo/urls.py
nano todo/urls.py
mkdir todo/templates
touch todo/templates/index.html
nano todo/templates/index.html
python3 manage.py runserver

todoist's People

Contributors

dashadsh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.