Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

HOW TO USE

You can use it no windows or linux. (On your computer must have the following packages: Pip, Python v2.*, git)

cd ~
git clone https://bitbucket.org/pahaz/django-work-flow.git _DJANGO_PROJECTS_
cd _DJANGO_PROJECTS_

Install deploy depensencies if need:

pip install -r deploy/req.txt

Create deploy/.pip.cache dir and deploy/fabsettings.py file.

Example fabsettings.py:

# conf for init
BITBUCKET_USER = 'pahaz'
BITBUCKET_PASSWORD = 'mypasswd'

# conf for deploy
DEPLOY_DEFAULT_DOMAIN = 'developers.urfu.ru'
DEPLOY_DEFAULT_REPOSITORY = 'https://pahaz@bitbucket.org/pahaz/developers.urfu.ru.git'

DEPLOY_USER = 'root'                            # change 
DEPLOY_PASSWORD = 'qwer'                        # change
DEPLOY_HOSTS = ['192.168.174.131:22', ]         # change

Run init.sh.cmd file for crete new Django site.

And enter you new project name.

~\_DJANGO_PROJS_$> init.sh.cmd
[192.168.174.131:22] Executing task 'init'
project domain: imkn.urfu.ru

Open new project directory in PyCharm (example) ~/DJANGO_PROJECTS/imkn.urfu.ru/src/

Run deploy if need deploy to remote server from git repository. (~/DJANGO_PROJECTS/imkn.urfu.ru/fabs.py)

CONFIGURATION NEW DJANGO PROJECT

Edit deploy/project template (template for new Django projec - src dir).

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.