You cannot post messages because only members can post, and you are not currently a member.
Description:
Discussion group for Django users. Django is a high-level Python Web framework (djangoproject.com).
|
|
|
Display each language in its own language.
|
| |
I would like the language selector to display each language in its own language. So for example English will always be displayed as 'English'. Even if the current language is French it will still be 'English' and not Anglais. <li> <form id="locale_switcher" method="POST" action="{% url 'localeurl_change_locale' %}"> {% csrf_token %} <select name="locale" onchange="$('#locale_switcher' ).submit()" class="btn btn-inverse"> {% for lang in LANGUAGES %} <option class="btn btn-inverse" value="{{ lang.0 }}" {% ifequal lang.0 LANGUAGE_CODE %} selected="selected" {% endifequal %}> {{ lang.1 }}</option> {% endfor %} </select> </form></li>... more »
|
|
No module named wsgi
|
| |
...mod wsgi installation could have also solved he purpose, using this command :
$sudo apt-get install apache2 libapache2-mod-wsgi
-- Sandeep Kaur
E-Mail: mkaurkha...@gmail.com
Blog: sandymadaan.wordpress.com
|
|
Multiprocess and Global State
|
| |
I all, Environment: - Django 1.5.1 - mongoengine 0.8.1 I use mongoengine to store and manage user accounts authentication. it work fine with the development server and uwsgi : only if I use a single process or thread mode. If i use more than 1 process, sometime ( when i refresh my application ), i... more »
|
|
Testing with complex database setups
|
| |
Hi,
I've product that uses complex setup scripts - tens of SQL scripts that creates tables, views, complex triggers, grants permissions and such and finally populates database with some pre-data.
So how I should proceed with unit testing with database like that, since some operations rely heavily that there really exists all that trigger-function mess in the database? So that I don't need everytime to start from the scratch but from some known state of the db?... more »
|
|
Filter
|
| |
Hi I have the following code, in which the player have a reference to the club: *class Club(mongoengine.Document):* * ClubName = StringField()* * * *class Player(mongoengine.Document):* * PlayerName = StringField()* * PlayerAge = IntField()* * PlayerClub = fields.ListField(fields.Refere nceField(Club,*... more »
|
|
Looking for beta testers for new Django hosting
|
| |
Hello everyone
We are developing a new Python/wsgi hosting solution and are looking for
beta testers.
The solution we are developing will focus on ease of deployment (git
integration, management of application versions, ...)
Beta testers will receive a free instance on our platform. Don't expect a... more »
|
|
View pictures from the template via models.FilePathField
|
| |
I'm not sure this is the correct method to use, so I'm open to suggestions. Practically I want to display the image retrieving the path where they are saved from the database. In a class in models.py I have inserted: locandina = models.FilePathField( path = "C:/Users/Federico.Erbea/Googl e Drive/Umore/apps/Database/stat ic/Film/Locandina/", recursive=True)... more »
|
|
custmoizing admin using template files
|
| |
Hi! I am working through the Django tutorial, and I have reached the part where I want to customize my admin. Basically, I want 'Chris Spears App' to appear at the top of the page instead of 'Django administration'. I copied the base_site.html file from its home to C:\Users\Chris\Documents\djang o_dev\mysite\templates\admin.... more »
|
|
|