Code Monkey home page Code Monkey logo

create-django-app's Introduction

create-django-app

MIT licensed GitHub issues GitHub forks GitHub stars Apple Macbook Linux Ubuntu

--- Installation command

First check this bellow command: One line download script copy paste your terminal

#!
$ git clone https://github.com/munisisazade/create-django-app.git && cd create-django-app/ && python3 install.py && cd .. && rm -rf create-django-app/

--- Set up synced folders

Create new Django app with bellow command:

#!

$ create-django-app talasemia

Documentations

First Installation step


Django

--- Activate Virtualenviroment Python 3

Change into the directory, you want create virtual environment:

#!

$ source .venv/bin/activate

--- The development server

Change into the outer mysite directory, if you haven’t already, and run the following commands:

#!

$ python manage.py runserver

--- Creating a project / app

Project:

#!

$ django-admin startproject <myproject>

To create your app, make sure you’re in the same directory as manage.py and type this command:

#!

$ python manage.py startapp <appname>

--- Superuser

Create superusers using the createsuperuser command:

#!

$ python manage.py createsuperuser --username=joe [email protected]

--- Migrate

By running makemigrations, you’re telling Django that you’ve made some changes to your models (in this case, you’ve made new ones) and that you’d like the changes to be stored as a migration.

#!

$ python manage.py makemigrations <appname>

Now, run migrate again to create those model tables in your database:

#!

$ python manage.py migrate

--- Running tests

In the terminal, we can run our test:

#!
$ python manage.py test <appname>

--- Shell

To invoke the Python shell, use this command:

#!
$ python manage.py shell

--- Install dependencies

Installing required dependencies on virtual environment:

#!
$ pip freeze > requirements.txt
$ pip install -r requirements.txt

--- Credits & Helpers

  1. Extend your RAM by adding a swap file - http://stackoverflow.com/a/18335151/968751
  2. Make ffmpeg executable everywhere - http://askubuntu.com/a/613799
  3. FFMpeg permission denied error - http://askubuntu.com/a/478019
  4. One liner ffmpeg (or other) to get only resolution? - http://askubuntu.com/a/577431 / http://stackoverflow.com/a/29585066 (json)
  5. Revert to a commit by a SHA hash in Git? - http://stackoverflow.com/a/1895095

--- Used modules & Apps

  1. Media server: ngnix RMTP
  2. Video edit: ffmpeg

create-django-app's People

Contributors

munisisazade avatar

Stargazers

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

Watchers

 avatar  avatar

create-django-app's Issues

error when python3-venv not installed

Add Contributing #1

When contributing to this repository, please first discuss the change you wish to make via issue,
email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.
image

Django2 files configurations add happend

Add Contributing #1

image
When I write tu database credentials accidently happend

When contributing to this repository, please first discuss the change you wish to make via issue,
email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Add new modules new version # 1.5.8

Add Contributing #1

When contributing to this repository, please first discuss the change you wish to make via issue,
email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Add Contributing

When contributing to this repository, please first discuss the change you wish to make via issue,
email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

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.