sharpe-s-django.blogspot.com
Sharpe's Django Blog: Deployment of the Django project using Apache2 and mod_wsgi on Ubuntu Linux
http://sharpe-s-django.blogspot.com/2009/09/deployment-of-django-project-using.html
Nedeľa, 6. septembra 2009. Deployment of the Django project using Apache2 and mod wsgi on Ubuntu Linux. After several hours of pain when trying to have Apache. Working on Mac OS X. Leopard), I decided to try Ubuntu Linux. Server (can be on separate machine). Python is installed by default, Django. Installation is pretty straightforward, just follow its official documentation. To see, how to install psycopg2, look at this how to. Installation is also pretty straightforward. Add line with WSGIScriptAlias.
sharpe-s-django.blogspot.com
Sharpe's Django Blog: How to set multi-field primary key
http://sharpe-s-django.blogspot.com/2009/09/how-to-set-multi-field-primary-key.html
Pondelok, 7. septembra 2009. How to set multi-field primary key. I have class AccountingDocument. And want to have combination of Type. Unique. Howto is here. Type = models.ForeignKey('AccountingDocumentType', help text='Typ účtovného dokladu.'). Identifier = models.CharField(max length=40, help text='Číslo účtovného dokladu, jedinečný identifikátor, ktorý mu jeho vystavovateľ pridelil, napr. číslo faktúry.'). Date issued = models.DateField(). Time issued = models.TimeField(null=True, blank=True). How to...
sharpe-s-django.blogspot.com
Sharpe's Django Blog: Uploading files via Django application
http://sharpe-s-django.blogspot.com/2009/09/uploading-files-via-django-application.html
Nedeľa, 6. septembra 2009. Uploading files via Django application. There are two field types in Django. Basic field type for any file type), see FileField reference. Advanced variant of FileField, able to do some additional operations useful for images), see ImageField reference. There is also third type - FilePathField. But this cannot be used for uploading, only for selecting already uploaded files, so it won't be covered here. End of theory, let's look, how to use it in practise. MEDIA ROOT = '. R' ad...
ostrochovsky.blogspot.com
Ostry's Blog: septembra 2009
http://ostrochovsky.blogspot.com/2009_09_01_archive.html
Nedeľa, 6. septembra 2009. On 6-th September 2009 I created 2 specialized blogs, devoted to these topics:. There is going to be more to come, e.g.:. Added on 12-th October 2009). Odkazy na tento príspevok. Prihlásiť na odber: Príspevky (Atom). Vyhľadávať v tomto blogu. Zobraziť môj úplný profil.
sharpe-s-django.blogspot.com
Sharpe's Django Blog: Django Tricks
http://sharpe-s-django.blogspot.com/2009/10/django-tricks.html
Utorok, 6. októbra 2009. Another interesting blog about Django: http:/ djangotricks.blogspot.com/. Prihlásiť na odber: Zverejniť komentáre (Atom). Django model verbose names. How to find out sizes of PostgreSQL databases and tables. Zobraziť môj úplný profil.
ostrochovsky.blogspot.com
Ostry's Blog: My new blogs
http://ostrochovsky.blogspot.com/2009/09/my-new-blogs.html
Nedeľa, 6. septembra 2009. On 6-th September 2009 I created 2 specialized blogs, devoted to these topics:. There is going to be more to come, e.g.:. Added on 12-th October 2009). Prihlásiť na odber: Zverejniť komentáre (Atom). Vyhľadávať v tomto blogu. Zobraziť môj úplný profil.
sharpe-s-django.blogspot.com
Sharpe's Django Blog: How to reset Django Evolution of the project
http://sharpe-s-django.blogspot.com/2009/09/how-to-reset-django-evolution-of.html
Sobota, 5. septembra 2009. How to reset Django Evolution of the project. Let's imagine the situation:. You have got into deadlock in Django Evolution. And you cannot evolve forward. You don't need the history of your evolutions (e.g. you use Subversion or other version control system. Or you don't need history at all). This was my case, I added some attributes to model, then installed Django Evolution. Added ' django evolution. Of my project, and ran ' python manage.py syncdb. Python manage.py syncdb.
sharpe-s-django.blogspot.com
Sharpe's Django Blog: Long model names in Django
http://sharpe-s-django.blogspot.com/2009/09/long-model-names-in-django.html
Nedeľa, 13. septembra 2009. Long model names in Django. Than extending varchar sizes as described below, is not allow long verbose names. To exceed particular varchar size. It does not mean, that you can't have. You only need to do small trick:. When adding new models, do not populate verbose names. You can do it after first. But default string values created by first. Do following not till this is not sufficient. Is probably not an issue. There is a limitation in Django. This behaviour of Django. And af...