Giter Site home page Giter Site logo

vsupalov / my-django-template Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 16 KB

My own small Django project starter template. A minimal set of useful configs and parts, so you can jump straight into prototyping without getting bogged down.

Python 82.23% Shell 3.81% HTML 13.96%

my-django-template's Introduction

My Django Blueprint

My own small Django project starter template.

A minimal set of useful configs and parts, kept light where possible, so you can jump straight into prototyping without getting bogged down.

Is This Right For You?

Do you need a more elaborate setups with

  • Django Allauth
  • Django Rest Framework (DRF)
  • Celery

out of the box? Cookiecutter-django could be a better idea.

Wanna start small with the goal to tinker around a bit, test an idea and maybe add more complexity later? You might like it.

Getting Started

  • Clone this repository (or copy the folder if you cloned it).
  • Edit rename.sh and set your PROJECTNAME and APPNAME.
  • Run ./rename.sh, you can delete the rename.sh script afterwards.
  • Run pipenv install --dev.
  • Copy env.dist to .env, make adjustements to .env as needed.
  • Use the following commands to: create new migrations, apply them, create a superuser and run a development server.
pipenv shell
python manage.py makemigrations users
python manage.py migrate

# OPTION 1: interactive user creation (I prefer option 2)
#python manage.py createsuperuser
# OPTION 2: all in one command with defaults
echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('root', '[email protected]', 'rootroot')" | python manage.py shell

python manage.py runserver

# your server run at this point - try accessing the site in your browser
  • Write a better README than this one, specific to your new project.

First Steps From Here

  • Create your models and views in your application folder.
  • Define urls to those views in your project folder.
  • Tinker, create, have fun!

How this was created

Notes About Possible TODOs

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.