Giter Site home page Giter Site logo

django_project_boilerplate's Introduction

JustDjango

The Definitive Django Learning Platform.

Django Project Boilerplate

This repository is a boilerplate Django project for quickly getting started.

Getting started

Steps:

  1. Clone/pull/download this repository
  2. Create a virtualenv with virtualenv env and install dependencies with pip install -r requirements.txt
  3. Configure your .env variables
  4. Rename your project with python manage.py rename <yourprojectname> <newprojectname>

This project includes:

  1. Settings modules for deploying with Azure
  2. Django commands for renaming your project and creating a superuser
  3. A cli tool for setting environment variables for deployment

Other places you can find us:

YouTube Twitter

django_project_boilerplate's People

Contributors

dependabot[bot] avatar freezboltz avatar udayposia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

django_project_boilerplate's Issues

Rename issue

python3 manage.py rename djecommerce
usage: manage.py rename [-h] [--version] [-v {0,1,2,3}] [--settings SETTINGS]
[--pythonpath PYTHONPATH] [--traceback] [--no-color]
[--force-color]
current [current ...] new [new ...]
manage.py rename: error: the following arguments are required: new

react issue

running npm i and npm start i run into the below issue:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]prestart: [email protected]
6 info lifecycle [email protected]
start: [email protected]
7 verbose lifecycle [email protected]start: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]
start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/drewpham/Desktop/projects/django-react-boilerplate/node_modules/.bin:/Users/drewpham/Desktop/projects/django-react-boilerplate/env/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/usr/local/opt/openssl/bin:/usr/local/bin:/usr/local/sbin:/Users/drewpham/.rvm/gems/ruby-2.3.1/bin:/Users/drewpham/.rvm/gems/ruby-2.3.1@global/bin:/Users/drewpham/.rvm/rubies/ruby-2.3.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/drewpham/.rvm/bin
9 verbose lifecycle [email protected]start: CWD: /Users/drewpham/Desktop/projects/django-react-boilerplate
10 silly lifecycle [email protected]
start: Args: [ '-c', 'react-scripts start' ]
11 silly lifecycle [email protected]start: Returned: code: 1 signal: null
12 info lifecycle [email protected]
start: Failed to exec start script
13 verbose stack Error: [email protected] start: react-scripts start
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
13 verbose stack at emitTwo (events.js:125:13)
13 verbose stack at EventEmitter.emit (events.js:213:7)
13 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at emitTwo (events.js:125:13)
13 verbose stack at ChildProcess.emit (events.js:213:7)
13 verbose stack at maybeClose (internal/child_process.js:897:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)
14 verbose pkgid [email protected]
15 verbose cwd /Users/drewpham/Desktop/projects/django-react-boilerplate
16 verbose Darwin 18.2.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
18 verbose node v8.1.3
19 verbose npm v6.13.1
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] start: react-scripts start
22 error Exit status 1
23 error Failed at the [email protected] start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Syntax of rename command

This is just to keep updated users following your tutorial "Build an E-commerce website with Django" by Matthew Freire on Udemy.
The correct syntax of rename command is

python manage.py rename demo djecommerce

where djecommerce is the desired new project name

rename project doesn't work

I just wanted watching the watch and immediately faced with an issue with renaming the project. I did provide current name and the new name but receiving the following error:

FileNotFoundError: [Errno 2] No such file or directory: 'django_project_boilerplate/settings.py'

Any idea?

Thanks,

`rename` command does not work with pipenv

I used pipenv to start with the project. The rename command does not work. It seems the .env file which pipenv loads have settings which cause the rename command to fail.

➜  django_project_boilerplate git:(master) pipenv install --python ~/anaconda3/bin/python
Virtualenv already exists!
Removing existing virtualenv...
Creating a virtualenv for this project...
Pipfile: /home/nitin/Study/Django/JustDjango/django_project_boilerplate/Pipfile
Using /home/nitin/anaconda3/bin/python (3.7.3) to create virtualenv...
⠇ Creating virtual environment...Using base prefix '/home/nitin/anaconda3'
New python executable in /home/nitin/.local/share/virtualenvs/django_project_boilerplate-D1Bizn5w/bin/python
Installing setuptools, pip, wheel...done.
Running virtualenv with interpreter /home/nitin/anaconda3/bin/python

✔ Successfully created virtual environment! 
Virtualenv location: /home/nitin/.local/share/virtualenvs/django_project_boilerplate-D1Bizn5w
requirements.txt found, instead of Pipfile! Converting...
✔ Success! 
Warning: Your Pipfile now contains pinned versions, if your requirements.txt did. 
We recommend updating your Pipfile to specify the "*" version, instead.
Pipfile.lock not found, creating...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
✔ Success! 
Updated Pipfile.lock (6157de)!
Installing dependencies from Pipfile.lock (6157de)...
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 6/6 — 00:00:09
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
➜  django_project_boilerplate git:(master) ✗ pipenv shell
Loading .env environment variables...
Launching subshell in virtual environment...
 . /home/nitin/.local/share/virtualenvs/django_project_boilerplate-D1Bizn5w/bin/activate
➜  django_project_boilerplate git:(master) ✗  . /home/nitin/.local/share/virtualenvs/django_project_boilerplate-D1Bizn5w/bin/activate
(django_project_boilerplate) ➜  django_project_boilerplate git:(master) ✗ python manage.py rename demo ecommerce_project
No Django settings specified.
Unknown command: 'rename'
Type 'manage.py help' for usage.

debugger toolbar not showing giving me these error

The key "intial-scale" is not recognized and ignored.
http://127.0.0.1:8000/static/debug_toolbar/js/toolbar.js:1 Failed to load module script: The server responded with a non-JavaScript MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.

DevTools failed to load SourceMap: Could not load content for chrome-extension://ljngjbnaijcbncmcnjfhigebomdlkcjo/content-script/browser-polyfill.min.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME

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.