Re: Django saleor postgresql hstore issue

2019-04-10 Thread Asif Saif Uddin
Fixed using this https://stackoverflow.com/questions/10757431/postgres-upgrade-a-user-to-be-a-superuser On Thursday, April 11, 2019 at 10:05:58 AM UTC+6, Asif Saif Uddin wrote: > > facing this error even after creating hstore extension from pg shell and > generated empty migrations for hstore:

Django + PostgreSQL Installation (pipenv install psycopg2)

2019-04-10 Thread Danny Blaker
https://github.com/psycopg/psycopg2/issues/699 Try updating pip too :) -- 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 + PostgreSQL Installation (pipenv install psycopg2)

2019-04-10 Thread Danny Blaker
https://www.google.com/url?sa=t=web=j=https://stackoverflow.com/questions/11618898/pg-config-executable-not-found=2ahUKEwitxePlncfhAhVDwIsBHeQbBTEQjjgwAHoECAkQAg=AOvVaw1ujp9GSEZRKKrkOSHWdMiD -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Django saleor postgresql hstore issue

2019-04-10 Thread Asif Saif Uddin
facing this error even after creating hstore extension from pg shell and generated empty migrations for hstore: line 89, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value File "/usr/local/lib/python3.6/dist-packages/django/db/backends/utils.py", line 84, in

Re: SSL Certification, an issue with Django Python Daphne Server, Certbot, and Let's Encrypt

2019-04-10 Thread Manas Nikam
Theres an auto renewal command in certbot already. Check it out On Thu, Apr 11, 2019, 8:22 AM Desmond wrote: > Hello All, > > This is the first time I've ever posted in the group so forgive me if this > question is too broad for Django. If so, if you could please direct me to > another user

SSL Certification, an issue with Django Python Daphne Server, Certbot, and Let's Encrypt

2019-04-10 Thread Desmond
Hello All, This is the first time I've ever posted in the group so forgive me if this question is too broad for Django. If so, if you could please direct me to another user group, I would be delighted. I've been working on a project that was previously set up by an old contractor. They set up

Re: I need help on adding a search button to an input field

2019-04-10 Thread Nanjuki Saidat
hello@joel, how do i use it as in what to import and so on do you have some link or example and show me coz i tried inserting some inputs but when i tried to build the docker didnt meaning i was missing some bootstrap packages to import. can you please tell me how to do it.Thanks On Wed, 10 Apr

Re: Update many to many django

2019-04-10 Thread Luis Zárate
Creo que zip está explicado acá https://www.programiz.com/python-programming/methods/built-in/zip El miércoles, 10 de abril de 2019, Karen Tatiana Mesa Lopez escribió: > Hola Luis, tengo la ultima pregunta, te agradezco mucho tu ayuda > voy a realizar un for doble, mi pregunta puntual seria,

Re: Update many to many django

2019-04-10 Thread Karen Tatiana Mesa Lopez
Hola Luis, tengo la ultima pregunta, te agradezco mucho tu ayuda voy a realizar un for doble, mi pregunta puntual seria, los arreglos del for doble tienen que llevar la misma cantidad de datos ejemplo tema = ['1','2'] otro = ['1','2'] for t ,o in zip(tema,otro): print(t,o) ¿o pueden

Re: I need help on adding a search button to an input field

2019-04-10 Thread Joel Mathew
Use bootstrap's input-group-append Sincerely yours, Joel G Mathew On Wed, 10 Apr 2019 at 23:14, Nanjuki Saidat wrote: > Please any one to help me out.thanks > > On Wed, 10 Apr 2019 at 20:40, Nanjuki Saidat > wrote: > >> this one still did the same thing which i didnt mean me i meant an

Re: I need help on adding a search button to an input field

2019-04-10 Thread Nanjuki Saidat
Please any one to help me out.thanks On Wed, 10 Apr 2019 at 20:40, Nanjuki Saidat wrote: > this one still did the same thing which i didnt mean me i meant an search > button in an input field > > On Wed, 3 Apr 2019 at 22:04, Anirudh Jain > wrote: > >> You can include the following code in the

Re: I need help on adding a search button to an input field

2019-04-10 Thread Nanjuki Saidat
this one still did the same thing which i didnt mean me i meant an search button in an input field On Wed, 3 Apr 2019 at 22:04, Anirudh Jain wrote: > You can include the following code in the end > > ButtonHolder( > Submit('submit', 'Update', css_class='btn btn-theme small') > ) > > Take care

Re: error 403 on admin login

2019-04-10 Thread Suresh Kannan
Hi, These links may help you https://stackoverflow.com/a/14121175/4037275 https://stackoverflow.com/a/12712507/4037275 https://stackoverflow.com/a/36292539/4037275 On Wed, Apr 10, 2019 at 7:11 AM Akash Kumar wrote: > I was following the official polls app tutorial on Django on v2.2. > i have

Re: What is the proper workflow before first migration?

2019-04-10 Thread 'dtdave' via Django users
To me the way I build my models is so that if anyone looked at the code they would see exactly what the model represented. I had a great mentor in Daniel Greenfield of Two Scoops Fame. So my models would be users and then a separate model for public posts. The you have the following in your

Re: Set user permission via python

2019-04-10 Thread Matt Collins
I've solved this. First of all, the codename for the permission should be called as a codename and second, I had to remove the app name (display_data) like this: permission = Permission.objects.get(codename='settings') On Tuesday, April 9, 2019 at 9:25:09 PM UTC-6, Matt Collins wrote: > > Hi,

Re: upgrading the pip version in dockerized django container

2019-04-10 Thread nm
Try `exec` instead of `run`. `run` runs the command in a new container, so each time you perform `docker-compose run web `, a new copy of the container is created. See the documentation: https://docs.docker.com/compose/reference/run/ On Wednesday, 10 April 2019 11:56:53 UTC+2, Shubham Joshi

Re: What is the proper workflow before first migration?

2019-04-10 Thread Flip Matter
Thank you very much for the resources! However it is installed in my settings.py the exact line is... AUTH_USER_MODEL = 'public_posts.CustomUser' Is there a different way to do it? This is the only way I have seen to set your AUTH_USER_MODEL, or does my custom user model have to be in a 'users'

Django 2.2.0 StatReloader not responding to filechanges

2019-04-10 Thread info
Since the introduction to Watchman, with the failover to StatReloader, the file changes aren't picked up. We're running our Django development environment in Docker/Docker-compose, and 2.1.7 everything is still fine. But updating to 2.2.0, the file changes aren't picked up (or rarely). We

Re: Django REST in Docker

2019-04-10 Thread Shubham Joshi
Okay, thanks , I will do that On Tue 9 Apr, 2019, 7:52 PM PASCUAL Eric, wrote: > It seems right. > > I suppose that requirements.txt contains the rest_framework package too. > > You can check the image content by executing the "pip freeze" command on > it (docker run pip freeze). This will

error 403 on admin login

2019-04-10 Thread Akash Kumar
I was following the official polls app tutorial on Django on v2.2. i have created the superuser of the first time but whenever I log in it shows error 403 forbidden (csrf token missing or incorrect) can anyone plz help me. -- You received this message because you are subscribed to the Google

Using exclude with annotated FilteredRelation doesn't work.

2019-04-10 Thread Lucas Miller
Hi, when I try to add an exclude filter to an annotated field with a FilteredRelation I get a FieldError on the annotated field. For exemple if I modify django test filtered_relation.tests.FilteredRelationTests.test_with_join from def test_with_join(self): self.assertSequenceEqual(

I am having trouble finding any example of setting a task_id with my own task_id

2019-04-10 Thread inet . neeraj
def testview1(request): for i in xrange(0,1000): result = add.delay( i, 4,task_id = i) print result.task_id #i want to display here i value return HttpResponse("Done") @task()def add(task_id, x, y): print add.task_id print str(x+y) return x + y --

Is django can run in FIPS mode:

2019-04-10 Thread Gowtham Shanmugam
Hi All, I am using graphite-web-1.1.4-1 and python-django-1.11.15. I am facing some issue while trying to initialize graphite DB using python-Django. In FIPs mode I am getting the same issue which is mentioned in https://code.djangoproject.com/ticket/28401. This issue is present for a long

upgrading the pip version in dockerized django container

2019-04-10 Thread Shubham Joshi
I am trying to upgrade pip version in docker snj@snj-ThinkPad-T440p:~/school$ sudo docker-compose run web pip install --upgrade pip Starting school_db_1 ... done Collecting pip Downloading

Re: Django 2.2 and custom media in the admin

2019-04-10 Thread Thorsten Sanders
Hello, thanks did overread that twice then, once when reading changes, once when trying to figure out if there was a change due not working. Then i searched for it and came to: https://docs.djangoproject.com/en/2.2/ref/contrib/admin/#jquery Maybe not bad idea to mention it there too.

Re: Is there a way to extend Django Admin to normal user/staff? If so, how?

2019-04-10 Thread Derek
Django admin is perfectly usable by anyone that can be trained to understand it. What is the issue you have? On Tuesday, 9 April 2019 13:29:53 UTC+2, Chaitanya Vankadaru wrote: > > I am looking to extend Django Admin to normal user/staff? If so, how? > > Please reply with your ideas/solutions.

Re: Feedback regarding Django-Suit for Django Admin Panel Customization - Need to add New Menu for Report Generations

2019-04-10 Thread Derek
You'd need to create your own reporting app, with view and templates for creating your reports (plus an entry in urls.py of course) The Django Suit menu could then be updated to link to your report index page: # -*- coding: utf-8 -*- """ Django Suit Configuration Module """ from django.apps