Re: New language adding error('Unknown language code si.')

2018-08-30 Thread lakshitha kumara
Hello Bazan you can be fixed this issue this override Django locale file. setting up your settings.py file like the below. EXTRA_LANG_INFO = { 'si': { 'bidi': False, 'code': 'si', 'name': 'Sinhala', 'name_local': 'සිංහල', }, 'en': { 'bidi': Fal

Re: New language adding error('Unknown language code si.')

2018-08-30 Thread lakshitha kumara
Hello Deniz Bazan *I fixed that issue with override Django locale file. you can try to setting up file this your setting.py file * *EXTRA_LANG_INFO = {* *'si': {* *'bidi': False,* *'code': 'si',* *'name': 'Sinhala',* *'name_local': 'සිංහල',* *},* *'en': {

Re: Django

2018-08-30 Thread Mike Dewhirst
On 30/08/2018 2:57 PM, Sai Pavan Kumar wrote: Hi Friends,        This is pavan working as a python developer. Is there any tool for reports generation in django admin or in templates(dynamic filters). Try this ... https://www.google.com.au/search?q=django-report-generator I will be looking f

Re: Ldap for django

2018-08-30 Thread Mike Dewhirst
On 30/08/2018 10:28 PM, soumyajit banerjee wrote: Hi, I am new in django python. I want to set up lodap authentication for my django app. Could you please help me. I am using python 3.6 with django 2.1 Try this ... https://www.google.com/search?q=django-ldap&ie=utf-8&oe=utf-8&client=firefox-

Re: Doubts on One-To-One Field

2018-08-30 Thread vineeth sagar
Actually we would be needing that information most of the time, I will have to see the which would be favourable and also of course django has documented a doubt I have. I guess I have to rtfd more carefully. Thank you for the information. You are a savior. On Thu, Aug 30, 2018 at 10:54 PM Mic

Re: Doubts on One-To-One Field

2018-08-30 Thread Michael MacIntosh
Hello, You are correct, creating a one-to-one relationship can potentially create more queries and hurt performance if you are not careful.  However it can also speed up certain queries if you don't need that information all of the time. If you are worried about the performance, I would sugg

Doubts on One-To-One Field

2018-08-30 Thread vineeth sagar
def userProfile(models.Model): user=models.OneToOneField(User,primary_key=True) """ Other stuff """ I can query it like this x = userProfile.objects.get(user__id=1)(Assuming this exists) when I do a connection.queries a single query is executed.When I try to access the

Re: WSGIRequest' object has no attribute 'name'

2018-08-30 Thread Andréas Kühne
Hi, You are probably trying to get a name property from the request object. Like this: request.name. And the request object usually doesn't have that property. Regards, Andréas Den tors 30 aug. 2018 kl 15:50 skrev sankar ardhas : > Hi all , > I have a error when i submit a form that

Language code twice in url

2018-08-30 Thread Kaelig
Hi, I'm building a multi language website using i18n. I get the language in the url with i18n_patterns : urlpatterns = i18n_patterns(path('/contact/', views.contact, name='contact' ), ...) So I can access to my page with my-domain.com/en/contact/. But when I submit a form (or just try to aces

Ldap for django

2018-08-30 Thread soumyajit banerjee
Hi, I am new in django python. I want to set up lodap authentication for my django app. Could you please help me. I am using python 3.6 with django 2.1 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rec

Re: Customise Session Engine to distribute session data storage

2018-08-30 Thread Jason
https://github.com/adw0rd/django-multi-sessions that's a non-working project but might give you some clues how to route sessions to different backends. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rec

Re: Customise Session Engine to distribute session data storage

2018-08-30 Thread Web Architect
We were actually cache_db but the sessions were consuming too much of DB. Hence, we want some sessions to be persistent in DB and some to be volatile and not stored in DB. Hence, I was looking for some way to achieve that. Like I want all login sessions to be stored in DB whereas rest in cache.

Re: Base Views error importing articles.models

2018-08-30 Thread augustine tharakan
If you are writing this code in the views.py belonging to the app as that of models.py you don't have to specify the app name. (try this - from .models import Articles) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this g

Django

2018-08-30 Thread Sai Pavan Kumar
Hi Friends, This is pavan working as a python developer. Is there any tool for reports generation in django admin or in templates(dynamic filters). -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Django and asynchronous tasks

2018-08-30 Thread Karim
On Thu, Nov 10, 2016 at 7:05 PM Alain Muls wrote: > Hi All > [...] > I found celery very hard to work with. I liked a lot ` https://django-q.readthedocs.io/`. Give it a go. -- Karim N. Gorjux -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Help.... Django : Change Backend as mysql and create sample example using django ORM

2018-08-30 Thread Tom Forbes
Ensure you are using MySQL 5.6 or higher: https://docs.djangoproject.com/en/2.1/ref/databases/#version-support To find your version run SELECT VERSION(); On 30 August 2018 at 05:37:52, Sonali Vighne (sonalivig...@gmail.com) wrote: MySQL version- 6.0.8-alpha-community On Wednesday, Augus

Re: Base Views error importing articles.models

2018-08-30 Thread Jason
and I would suggest you use a text editor or IDE with python integrations to check for these kind of errors. Syntax and missing references are easily caught -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and st

Re: Help.... Django : Change Backend as mysql and create sample example using django ORM

2018-08-30 Thread Jason
that's not mysql, that's the workbench program you use to interact with mysql. and that version of workbench was released in 2013, which makes it severely out of date. combined with the fact the mysql release at that time was 5.1, which again is severely out of date raises suspicions on wheth

Re: Deploying with apache2 and modwsgi

2018-08-30 Thread Joel Mathew
I finally got it working with mod_wsgi-express. I was able to get my django project running on port 80. However I have a new problem. The page starts loading, but takes a very long time to load static files. If I hit refresh in the browser, it gives a 503 error. There's nothing in apache logs. The

Re: Help with mi first hello world please problems with urls

2018-08-30 Thread Sonali Vighne
¿Dónde está tu archivo views.py? escribir la solicitud de importación en views.py On Wednesday, August 22, 2018 at 10:31:19 PM UTC+5:30, Dario Coronel wrote: > > El problema que tengo es el siguiente soy un novato recien conociendo el > mundo de python y django estaba siguiendo los pasos de la

Re: Can we make 1 function to check the objects need update and update them

2018-08-30 Thread Mikhailo Keda
Django store data in a database, your program could get all data from the database. -- 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-users+unsubscr...@goo