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':

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

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=utf-8=utf-8=firefox-b-ab I

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

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

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

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

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

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

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

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

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,

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

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

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

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

2018-08-30 Thread Anirudh choudhary
I have read it already and the best I found from the documentation is the signals but signals only save when save command is given and it is manually On Thursday, August 30, 2018 at 12:19:17 PM UTC+5:30, Mikhailo Keda wrote: > > Check Django documentation https://docs.djangoproject.com/en/2.1/

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

2018-08-30 Thread ireoluwa fakeye
Why are you returning a string into the response ,there are different approaches to this . On Thu, 30 Aug 2018, 07:36 Anirudh choudhary, wrote: > if you understand English then use include() in your mysite.urls.py > which is in from django.urls import include > > On Wednesday, August 22, 2018

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

2018-08-30 Thread Mikhailo Keda
Check Django documentation https://docs.djangoproject.com/en/2.1/ -- 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...@googlegroups.com. To

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

2018-08-30 Thread Anirudh choudhary
if you understand English then use include() in your mysite.urls.py which is in from django.urls import include 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

Re: Base Views error importing articles.models

2018-08-30 Thread Anirudh choudhary
this error means that the module articles is not in the articels and file name models. you may be getting this error because of spelling On Monday, August 27, 2018 at 7:05:43 PM UTC+5:30, Sandy Leon wrote: > > Hello everyone, > > I am trying to add another simple 'home' page to my website which

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

2018-08-30 Thread Anirudh choudhary
I am Writing the program which will collect all the content and display it and I want this to be robust but i am not able to find in documentation related this -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group