This week I continued to work on the
startapp
django- admin.py startapp myapp
release.py, setup.py, MANIFEST.in, docs/, test/, myapp/, myapp/templates/myapp
Besides editing release.py manually you can now edit the meta information by running inside an application dir:
django-admin.py editapp
You can find a
ReleaseWrapper
django.utils.package
>> import os
>>> from django.utils.package import ReleaseWrapper, DEFAULT_DIRECTORIES, DEFAULT_FILES
>>> release = ReleaseWrapper(os.getcwd())
>>> print (release.NAME, release.VERSION)
('myapp', '0.1')
>>> release.previous_name = release.NAME
>>> release.NAME = "myapp2"
>>> release['VERSION'] = "0.2"
>>> release.update(os.getcwd(), DEFAULT_DIRECTORIES, DEFAULT_FILES)
Moved: /Users/Jannis/Desktop/test_app/myapp to /Users/Jannis/Desktop/
test_app/myapp2
Created: /Users/Jannis/Desktop/test_app/myapp2/templates/myapp2
Written: /Users/Jannis/Desktop/test_app/release.py
Written: /Users/Jannis/Desktop/test_app/setup.py
Written: /Users/Jannis/Desktop/test_app/MANIFEST.in
The application is ready to be used by setuptools, e.g. creating a zip- like “
egg
python setup.py bdist_egg
easy_install
Creating a stripped down project-based application (
__init__.py, models.py, views.py
django-admin.py --noskeleton startapp mysimpleapp
Please have a look at http://code.google.com/p/django-package/ for further details, full installation instructions and of course the patch.
And please, tell me what you think :)
comments
Armour, clothes than wild replica handbag or wild flowers roadside shop, make oneself long enough for $100, xiamen wild accessories, high. O shiny metallic lubricious replica handbags, hand catenary, diamond, concise air or. Nature can forms of entertainment.The stochastic modeling gold mirror replica handbag, luxurious easy and decent. Metal buckles locks, white replica handbags, founder professional etiquette. Other job of collected all the elements.