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 django-use
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',
'django.contrib.staticfiles
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:
>
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 w
On Wed, Feb 5, 2014 at 11:54 AM, David Seddon wrote:
>> a href="/i18n/setlang?lang=fr&name=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 received this messag
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
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 instructio
> 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
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 sum
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
> database and into a Python fil
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 wrot
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 |
+--
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
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': '',
#
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
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(
>
> 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
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'),
> '
> /opt/python-venv/lib/python2.7/site-packages/django/contrib/adm
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 = json.loads(m
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/ ^(?P\d+)$
>3. ^blog/ ^a
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 specific
> translation team
21 matches
Mail list logo