Questions tagged [Django] (5086)

1
answer

How to get rid of duplicate joins s at the intersecting ForeignKey in Django?

Noticed one unpleasant thing. Suppose there is a model that linked the other two have the same ForeignKey.class File(models.Model):<br> #some stuff<br> pass<br> <br / > class ServerFile(models.Model):<br> <b>file = models.ForeignKey('File')</b><br> #some stuff<br> <...
Darion.Daniel asked October 14th 19 at 11:33
2
answers

There are alternatives of django-timezones?

Found module datetied to time zones. The author of the well thought out it (for the functionality it suits me), but it looks like in practice and not used. Because it is full of errors, including no support for mysql, and it alone can generate hundreds of queries per page. There are of course different ppl were, but substan...
Erik_Muller76 asked October 14th 19 at 10:40
3
answers

What better implement webinars in your project?

I would like to implement a system of webinars in a new project with the minimum of effort. The project is written in Python + Django. Came to mind while following ideas: 1. Use third-party services like webinar.ru etc But the question of integration, so that users do not have twice to log in, at first we, and then another...
Kaya_Ledn asked October 10th 19 at 13:52
2
answers

syndb/south you can't see my model after refactoring

Decided to change models.py to the module, because it models a lot and to keep all in one file it was not very comfortable. Turned out the models directory and the files in it with classes: D:\~Sasha\eclipse_workspace\zavalen\picviewer\models>dir *.py<br> Directory of D:\~Sasha\eclipse_workspace\zavalen\picviewer...
justen_Gleaso asked October 10th 19 at 13:32
3
answers

Django: ManyToManyField change in method save()?

When sozdannyi models you need to analyze the contents of the fields and to make changes to the ManyToManyField. If save is invoked directly (in the view or from another model) — no problems. But when called from the admin — the result of the save will be replaced by the result of processing a form. I suspect that editing i...
Darion.Daniel asked October 10th 19 at 13:29
2
answers

The removal of inherited models in Django?

Have two models: class A(models.Model): pass # Not abstract class B(A): pass Removing the object A need to remove the derived B. the other is not suitable.
leonard_Casper asked October 10th 19 at 13:17
6
answers

VDS with 256 MB of RAM, Apache+MySQL+mod_php+mod_wsgi+Django?

Good afternoon. There are VDS'ka with 256 MB of RAM. It is now Lenny, Apache2 (mod_php with and without MPM), MySQL. Free is about 35 meters. Next is mod_wsgi (Daemon mode) and a site on Django. The amount of memory is reduced to 25 metres. When starting a page load, Apache begins to produce dramatically processes (for retu...
eleazar_Terry10 asked October 10th 19 at 12:49
3
answers

Edit the profile in Django?

Help a newbie — something that actually stuck. Tightened on the website user registration using django-registration and the following paragraph was a question to give the user after login to edit your profile. The documentation says how to extend the model of user profile and how to edit it remains unclear how to specify ro...
Harvey asked October 10th 19 at 11:33
1
answer

Russification of the model name in django admin?

Good afternoon, colleagues. Help to deal with the issue. There is a model Imageclass Image(models.Model): ... class Meta: verbose_name = u Image' verbose_name_plural = u Images' And like all shows fine but in the admin when editing the data model is displayed Is there a way we normally translate that part of the admin?
8
answers

Freelance and Python?

After three years of writing a site in PHP that I can't even see the code in that language. Moved to Python, seriously engaged in his studying, now reading the manuals to Django and trying to rivet sites. But there was one little silly question — is it possible doing cederstam exclusively on Python (+ Pylons, Django, etc) t...
Horacio30 asked October 10th 19 at 09:47