Skip to main content

Djenesis begets Django projects

Project description

Description
===========
Djenesis begets django projects.

More speficically it is a commandline utility that helps you either inflate a new django projects from a template, or setup a new work environment for an existing project. It can also automatically manage virtualenv environments and requirements.txt in the template or project.

Basic Usage
===========

New Project From Django Core Template
--------
The most basic form of djenesis, you give it a new project name, and it creates a new django project.

$ djenesis mynewprojectname

djenesis will create a virtualenv named ``env-mynewprojectname``, install the latest version of django, and run django-admin.py startproject mynewprojectname.
All you have to do now is
$ env-mynewprojectname/bin/python mynewprojectname/manage.py runserver
And you are running django!


New Project From Project Template
--------
Most people have worked out a particular project structure that they prefer for their django projects.
Inflating from a scm repository is a convient way to maintain and manage a project template struture.

$ djenesis projectname git+https://github.com/concentricsky/csky-django-template.git

this will inflate a new project based on the template found at the git+url in a directory named ``projectname``
This will also create a virtualenv named ``env-projectname`` and install any packages found in requirements.txt found at the toplevel directory in the template.


New Work Environment For Existing Project
-------
Often a django project already exists and you need to get a copy up and running to make your changes.
Inflate from an existing django project template and initialize a virtualenv based on requirements.txt

$ djenesis projectname -i git+git@github.com:user/project.git

this will initialize a virtualenv ``env-projectname`` and clone the project into ``projectname``, just like without -i but will preserve .git or any other SCM management files. (.hg, .git, .svn)



Arguments
=========

Usage: djenesis <output_directory> [options] [template]

Options:
-h, --help show this help message and exit
-e ENV_DIRECTORY, --virtualenv=ENV_DIRECTORY
Specify the directory to create the virtualenv at
-n, --no-virtualenv Don't create a virtualenv
-i, --initialize Initialize from an existing project (dont remove scm files)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

djenesis-1.0.0.tar.gz (6.1 kB view details)

Uploaded Source

File details

Details for the file djenesis-1.0.0.tar.gz.

File metadata

  • Download URL: djenesis-1.0.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for djenesis-1.0.0.tar.gz
Algorithm Hash digest
SHA256 13018a67362c2a0b6c7d726ff26a96af2a38c2db38a7b7502f455e144106518b
MD5 2e6d85bd3987af421c1963a68557ea77
BLAKE2b-256 a85437b2914b62d78d00b004e809123c8137f3cb5e61d704cd211ab6fbdbea35

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page