Re: django.db.utils.ProgrammingError: relation "django_content_type" already exists

2019-12-03 Thread Ram
Hi Integr, I tried as per your suggestion and the issue is not fix yet. Please let me know what I'm missing? Here is the result of each command. (vkenv) shami@ubuntu-wed-01:~/vkproject$ python manage.py dumpdata > --exclude=contenttypes --exclude=auth.Permission > > vikreya120319afterdroppingcron

Re: Handler 500

2019-12-03 Thread Mike Dewhirst
On 4/12/2019 4:19 pm, Charles Jason Decena wrote: is there a way to retrieve the handler 500 data/error?  and also can i have multiple handler 500 in my base url in order to be dynamic? and how to get the error message in handler500 Not sure I understand exactly what you are asking for but thi

Handler 500

2019-12-03 Thread Charles Jason Decena
is there a way to retrieve the handler 500 data/error? and also can i have multiple handler 500 in my base url in order to be dynamic? and how to get the error message in handler500 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscri

Re: graphql-python/graphene-django

2019-12-03 Thread carlos
graphene-django is not compatible yet Django 3 :p On Tue, Dec 3, 2019 at 2:26 PM BfutureP wrote: > After upgrading to Django 3.0 graphene as well as graphene-django is > giving error. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To

Re: Django- Display PDf document in an Iframe or Pdf VIewer

2019-12-03 Thread 1351552...@qq.com
hi: 1、the pdf file is static file,u can write the url in html to show it. 2、if u want to show it in half of web page,u can use with fixed width and height besides iframe. wblueboat From: 'Lucas Gärtner' via Django users Date: 2019-11-25 22:29 To: Django users Subject: Django- Display PDf doc

Re:

2019-12-03 Thread 1351552...@qq.com
r u mean u want to display the response? wblueboat From: vaneet bawa Date: 2019-11-27 16:35 To: django-users Subject: can someone please tell me that how I can display the message on the url from which I am getting the response -- You received this message because you are subscribed to the

graphql-python/graphene-django

2019-12-03 Thread BfutureP
After upgrading to Django 3.0 graphene as well as graphene-django is giving error. -- 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...@goog

Linking various HTML files in template

2019-12-03 Thread Anointed
Hello guys, I need a description of how to link several HTML pages as in a navigation bar -- 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.

Re: Link a .css to a Html template

2019-12-03 Thread Leó Horváth
hi guys, its still not working, one of you asked for my repo so here it is: https://github.com/leocsi/salesgrade Any idea what might be wrong? Thanks, Leó Integr@te System ezt írta (időpont: 2019. dec. 3., K, 7:29): > Hi Leo, > > Plz look at err/change log in developer tools to inspect whats u

Re: Fixtures for django auth groups

2019-12-03 Thread Tim Graham
Take a look at https://docs.djangoproject.com/en/stable/howto/initial-data/. On Tuesday, December 3, 2019 at 10:31:01 AM UTC-5, Arulselvam K wrote: > > I want to create fixtures for auth groups to get some preloaded auth > groups. Kindly educate me on how to create fixtures fixtures for built in

Fixtures for django auth groups

2019-12-03 Thread Arulselvam K
I want to create fixtures for auth groups to get some preloaded auth groups. Kindly educate me on how to create fixtures fixtures for built in django models Thanks and regards, Arulselvam K -- You received this message because you are subscribed to the Google Groups "Django users" group. To uns

Re: Why is the Django server running even when pytlinter shows that there's some bug in the code?

2019-12-03 Thread Aaryan Dewan
Thanks! :) On Tuesday, December 3, 2019 at 7:00:18 PM UTC+5:30, Bruckner de Villiers wrote: > > I had the same issue and after trying various weird solutions on > Stackoverflow, none of which worked, I found this simple solution – add > this comment code to each line giving the error and it mag

Re: Why is the Django server running even when pytlinter shows that there's some bug in the code?

2019-12-03 Thread Aaryan Dewan
Thanks for the reply! It was very helpful. "Class 'Item' has no 'objects' member" -- Could you explain what exactly a member is? By the way, this problem is common! See: https://stackoverflow.com/questions/45135263/class-has-no-objects-member On Tuesday, December 3, 2019 at 6:57:35 PM UTC+5:3

Re: Styling in Django

2019-12-03 Thread Tafadzwa Marshal
thanks On Tue, Dec 3, 2019 at 6:40 AM Thiago Luiz Parolin wrote: > My last project materializecss uses materialize with great success and to > stylizing forms i am using django-materializecss-form > > Em ter., 3 de dez. de 2019 às 10:52, Alan Gómez > escreveu: > >> You can work with materialize

Re: ERROR IndentationError: unindent does not match any outer indentation level

2019-12-03 Thread Kasper Laudrup
Hi EMPOWER EXCEL, On 03/12/2019 15.30, EMPOWER EXCEL wrote: File "/home/flavien/MyProjects/alertprot/ZSalertprot/models.py", line 11 objects = models.GeoManager() ^ IndentationError: unindent does not match any outer indentation lev

Re: Styling in Django

2019-12-03 Thread Thiago Luiz Parolin
My last project materializecss uses materialize with great success and to stylizing forms i am using django-materializecss-form Em ter., 3 de dez. de 2019 às 10:52, Alan Gómez escreveu: > You can work with materializecss In django. You must configure the static > path and put the materializecss

Re: ERROR IndentationError: unindent does not match any outer indentation level

2019-12-03 Thread Tafadzwa Marshal
make sure the "objects=models.GeoManager()" statement aligns with the statement "location=models.PointField(sid=4326)" On Tue, Dec 3, 2019 at 6:30 AM EMPOWER EXCEL wrote: > PLEASE PUSH ME UP TO CORRECT THIS PROBLEM: > > class Alerts(models.Model): > name = models.CharField(max_length=20

ERROR IndentationError: unindent does not match any outer indentation level

2019-12-03 Thread EMPOWER EXCEL
PLEASE PUSH ME UP TO CORRECT THIS PROBLEM: class Alerts(models.Model): name = models.CharField(max_length=20) location = models.PointField(srid=4326) objects = models.GeoManager() self.models_module = import_module(models_module_name) File "/usr/lib/python2.7/importlib/

Styling in Django

2019-12-03 Thread Alan Gómez
You can work with materializecss In django. You must configure the static path and put the materializecss files in these path. At night, I can send you an example. Regards. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from t

Styling in Django

2019-12-03 Thread marshalx4
How can I use Materialize CSS with Django? Seems like bootstrap is the only framework that works with little to no hassle at all. -- 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,

Re: Why is the Django server running even when pytlinter shows that there's some bug in the code?

2019-12-03 Thread Bruckner de Villiers
I had the same issue and after trying various weird solutions on Stackoverflow, none of which worked, I found this simple solution – add this comment code to each line giving the error and it magically disappears: # pylint: disable=no-member Bruckner de Villiers 083 625 1086 From:

Re: Why is the Django server running even when pytlinter shows that there's some bug in the code?

2019-12-03 Thread Daniel Hepper
Python is a dynamic programming language with a dynamic type system (as opposed to a static type system like for example Java), see https://en.wikipedia.org/wiki/Dynamic_programming_language Among other things, that means that type checks are done during runtime. That means, if Item really does n

Re: orm relation

2019-12-03 Thread Integr@te System
Hi issuer, Plz refer to docs to customize statement base on your use case, my work for a sample with limited time. Plz try remove space around equal sign. On Tue, Dec 3, 2019, 19:26 bill dexter <55dexte...@gmail.com> wrote: > hi friend; > i tryed your answer, but it says that error in syntax n

Re: Which Cloud Service Provider should be chosen to host Django Application

2019-12-03 Thread Bill Freeman
That sounds like a good choice. Do pay attention to any security procedures that they suggest in their documentation. And do keep backups of at least the basic system and configuration files, if not occasional database dumps, that are local to you. Good luck, and have fun. Bill On Tue, Dec 3, 2

Re: orm relation

2019-12-03 Thread bill dexter
hi friend; i tryed your answer, but it says that error in syntax near __gt in "" extractyear(dat_enc) - extractyear(annee)__gt = 3""; don't work Le lun. 2 déc. 2019 à 20:31, Integr@te System a écrit : > Hi friend, > > All_list = list(users.object.aggregate(age = > cast(extractyear(datetime.now

V fv fvvvffvvvvvv vv vv vcvvccvv v vf vvf cvv cvfvv c

2019-12-03 Thread aman kumar
-- 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 view this discussion on the web visit https://groups.google.com/d