Re: translations fix

2014-02-05 Thread stayros kroustouris
Thank you very much Russ! Have a nice day! On Thu, Feb 6, 2014 at 1:32 AM, Russell Keith-Magee wrote: > Hi Stayros, > > Translations for Django are all managed through Transifex. > > http://transifex.com > > Once you've signed up for an account, you can apply to join a

Re: url error

2014-02-05 Thread Babatunde Akinyanmi
Ji Cristiano. You show the code that is not behaving as you expect On 6 Feb 2014 03:15, "Cristiano Araujo" wrote: > the message error: >> > > Using the URLconf defined in webapp.urls, Django tried these URL > patterns, in this order: > >1. ^blog/ ^$ >2. ^blog/

Re: Model field's verbose_name from database?

2014-02-05 Thread Me Sulphur
You could easily convert mappings to JSON and store it in a model like: Class VerboseNameMaps(models.Model): map = models.TextField() user = models.ForeignKey(User) When you wish to use the same, you could: map_obj = VerboseNameMaps.objects.get(user=request.user) mapping =

Re: tutorial p.6 problem: style.css isn't loaded

2014-02-05 Thread Daniel Sears
templates/admin isn't necessary. Instead you should extend both TEMPLATE_DIRS and STATICFILES_DIRS to include the templates and static files for the admin package: TEMPLATE_DIRS = ( > os.path.join(BASE_DIR, 'templates'), > ' >

Re: url error

2014-02-05 Thread Cristiano Araujo
> > the message error: > Using the URLconf defined in webapp.urls, Django tried these URL patterns, in this order: 1. ^blog/ ^$ 2. ^blog/ ^(?P\d+)$ 3. ^blog/ ^archives/$ 4. ^blog/ ^tag/(?P\w+)$ 5. ^blog/ ^feed/$ 6. ^admin/ The current URL, blog/tagLondon, didn't match any of

url error

2014-02-05 Thread Cristiano Araujo
hello guys this is my url.py urlpatterns = patterns('blog.views', url(r'^$', ListView.as_view( queryset=Post.objects.all().order_by("-created")[:2], template_name="blog.html")), url(r'^(?P\d+)$', DetailView.as_view(

Re: moving from sqlite3 to mysql

2014-02-05 Thread Ariel E. Isidro
1. before exiting mysql, you should grant permission to a user,i.e. grant all privileges on django_1.* to username@'localhost' identified by 'userpassword' replace username, userpassword with your own 2. exit mysql console 3. modify settings.py to add your username, password, host (localhost), and

Re: moving from sqlite3 to mysql

2014-02-05 Thread Drew Ferguson
Hi Just like SQLlite, you tell Django where the MySQL database is in settings.py At the top you should have something like DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'django_1', # Or path to database file if using sqlite3. # 'USER': '', # 'PASSWORD': '',

Re: translations fix

2014-02-05 Thread Russell Keith-Magee
Hi Stayros, Translations for Django are all managed through Transifex. http://transifex.com Once you've signed up for an account, you can apply to join a specific translation team, which will allow you to contribute new and/or corrected translations. Yours, Russ Magee %-) On Wed, Feb 5, 2014

Re: moving from sqlite3 to mysql

2014-02-05 Thread Malik Rumi
mysql> CREATE DATABASE django_1; Query OK, 1 row affected (0.24 sec) mysql> SHOW DATABASES; ++ | Database | ++ | information_schema | | django_1 | | mysql | | performance_schema | | test |

Re: Optimizing DB query involving annotate and aggregate

2014-02-05 Thread Anssi Kääriäinen
Something like this might work: Transaction.objects.values_list('member_id').annotate(total=Sum('amount')).filter(total__gt=0).aggregate(Sum('total')) That is, don't start from Member, Django isn't smart enough to get rid of the non-necessary joins. Instead go directly for the query you

Re: Model field's verbose_name from database?

2014-02-05 Thread Tom Evans
On Wed, Feb 5, 2014 at 5:47 PM, Jon Dufresne wrote: >> Why not use dictionary to Map user-level names to database-fields > > I'm not sure I fully follow what you're suggesting. But it sounds like > you're suggesting I move the configuration of field name out of the >

Optimizing DB query involving annotate and aggregate

2014-02-05 Thread ST
Hi, I'm trying to optimize the run-time of getting total credit and debt values out of our database. Ideally I'd like to formulate it as a Django query. This is the raw SQL query I have, which produces the right answer and is very fast (milliseconds): SELECT sum(tg.total) FROM ( SELECT

Re: Model field's verbose_name from database?

2014-02-05 Thread Jon Dufresne
> Why not use dictionary to Map user-level names to database-fields I'm not sure I fully follow what you're suggesting. But it sounds like you're suggesting I move the configuration of field name out of the database and into a Python file using a dictionary to map actual fields to preferred field

tutorial p.6 problem: style.css isn't loaded

2014-02-05 Thread Janek Warchoł
Hello, i'm following Django's tutorial (very nice, btw) and static files don't work for me. I have a test project created along the previous parts of the tutorial, and now i'm here: https://docs.djangoproject.com/en/1.6/intro/tutorial06/#customize-your-app-s-look-and-feel According to

Re: Django 1.6 Python 3.3 How to recognize and handle three different form's POST data in the same page without reloading the entire page?

2014-02-05 Thread nkuttler
On Tuesday, February 4, 2014 3:36:12 PM UTC+1, 项楠 wrote: > > OK, my situation seems similar to SO but much simpler. As we know, in a SO > question detail page we can post a comment to this quesion, or to one of > its answers, we can also post an answer to this question. *All will be > done in

Re: How to change language by clicking on link (using GET not POST) (set_language redirect)

2014-02-05 Thread Sergiy Khohlov
On Wed, Feb 5, 2014 at 11:54 AM, David Seddon wrote: >> a href="/i18n/setlang?lang=fr=next Take a look at your URL : lang=fr is present and you can use this information for updating LANGUAGE_CODE variable Many thanks, Serge +380 636150445 skype: skhohlov -- You

django-admin-bootstrapped needs a new maintainer

2014-02-05 Thread Riccardo Forina
Hello, I'm the current maintainer (and author) of django-admin-bootstrapped, a package to replace the default admin theme with a Bootstrap 2/3 one (https://github.com/riccardo-forina/django-admin-bootstrapped/). It's a nice little project with active contributors and it's quite used on the

Re: How to change language by clicking on link (using GET not POST) (set_language redirect)

2014-02-05 Thread David Seddon
It might be that you just want a link to the current page in another language. If you need that, see my comment here: http://stackoverflow.com/questions/11437454/django-templates-get-current-url-in-another-language/21573776#21573776 On Tuesday, 15 April 2008 01:03:56 UTC+1, Simon Tite wrote: >

Re: SITE_ID

2014-02-05 Thread Adam Hurwitz
Thanks Tim, but how does one implement a Site_ID under installed apps in the settings.py file? INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages',

translations fix

2014-02-05 Thread stayros kroustouris
I have found an error in Greek translations. What can i do in order to fix it? Thank you! -- Stavros -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to