python - Django Pinax , extending bundled applications -
I want to use pinakes for a small project, but I am confused because I can not do behavior Can there be any documents to extend / change the functional and bundled applications of the applications provided? Example: In the registration application, I want to add custom field, but I can not find the appropriate documents to get it. (Mainly
Thanks
Yes, you can expand the behavior of the underlying applications if you use Pinx Basic Setup with user accounts and profiles. If you are using, you need additional fields in the App / Profile / Models For a list of field types, see here:
When you run You must also modify the signup form to include these new areas and point your urls.py to the new signup form you have created Copy the form from the site-package / pincode directory to your project, do not modify them directly. If you do not have it already, you should check the Django tutorial here: This will give you a good idea of how Django apps are kept together and how different Interacting pieces, so you can do a better job optimizing Pinax for your choice. Make sure that you know manage.py syncdb , it will create the required DB fields for you if you already have If you have already configured DB, then you have to manually add the DB column. If you do not have any data in that table, you can always drop the table and recreate it. The DJ does not modify the tables , Once they are created They are, even if you change the model.
models.py ,
urls.py ,
views.py , and what the templates are doing.
Comments
Post a Comment