Re: good day guys

2019-12-05 Thread Tosin Ayoola
thanks it worked On Fri, Dec 6, 2019 at 4:01 AM Jorge Gimeno wrote: > By chance did you set AUTH_USER_MODEL in settings.py? That's a > requirement if you're using a custom user model (I guessed that because > your UserRole inherits from AbstractUser). There's a good tutorial on > writing a

Re: class 'django.db.utils.ProgrammingError'

2019-12-05 Thread Jorge Gimeno
Cutting and pasting the entire traceback is a good start in helping us see what is going wrong. -Jorge On Thu, Dec 5, 2019 at 10:43 AM Ram wrote: > Hi, > > I'm also hitting the similar error. I would like to know what causes this > error. Basically we are reading a XML file and extracting

Re: good day guys

2019-12-05 Thread Jorge Gimeno
By chance did you set AUTH_USER_MODEL in settings.py? That's a requirement if you're using a custom user model (I guessed that because your UserRole inherits from AbstractUser). There's a good tutorial on writing a custom user model here: https://wsvincent.com/django-custom-user-model-tutorial/

Re: weird memory error on Centos7

2019-12-05 Thread Fernando González Cisneros
thanks but i already did it, and the error is still there...i just have a question, does geodjango has support gdal 3.0? El jue., 5 dic. 2019 a las 17:13, DANIEL URBANO DE LA RUA (< dannybombas...@gmail.com>) escribió: > In your case use yum to get thoses package > > On Fri, 6 Dec 2019, 00:12

Re: Linking various HTML files in template

2019-12-05 Thread Dominick Del Ponte
If you can, for ease of development, I'd recommend picking a css framework for your application and using whatever navigation container it provides. There's a bunch of different frameworks but two would be: Zurb foundation Bootstrap

Re: How do I populate a table with data from a list file?

2019-12-05 Thread Dominick Del Ponte
I'm pretty new to django but, I think you'll need a view that fetches all of the rows from your model. This can be done with either a listView or in with something like model.objects.all() to return the context data from your view. Then in the template you could do: {% for item in data %} {{

Re: weird memory error on Centos7

2019-12-05 Thread DANIEL URBANO DE LA RUA
In your case use yum to get thoses package On Fri, 6 Dec 2019, 00:12 DANIEL URBANO DE LA RUA, wrote: > Try installing apt-ger install binutils libproj-dev gdal-bin > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from

weird memory error on Centos7

2019-12-05 Thread DANIEL URBANO DE LA RUA
Try installing apt-ger install binutils libproj-dev gdal-bin -- 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

Re: weird memory error on Centos7

2019-12-05 Thread DANIEL URBANO DE LA RUA
Try installing apt-ger install binutils libproj-dev gdal-bin On Fri, 6 Dec 2019, 00:01 Fernando González Cisneros, < hellhammerh...@gmail.com> wrote: > Hello, having some trouble here. > > I'm developing an app using the postgis backend in django, i'm releasing > it using an apache server on

weird memory error on Centos7

2019-12-05 Thread Fernando González Cisneros
Hello, having some trouble here. I'm developing an app using the postgis backend in django, i'm releasing it using an apache server on Centos 7, i'm using mod_wsgi for python 3.6 and i've already published a test "hello world" app without trouble, however when i try to publish my app a 500

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

2019-12-05 Thread Miracle
Just like Daniel Hepper said, pylint-django solves most of the linting problems you will encounter with django. Install it and you're good to go. On Wed, 4 Dec 2019, 9:23 am Bruckner de Villiers, < bruckner.devilli...@gmail.com> wrote: > Which tutorial are you following? Is it any good? > > >

Re: Django rest framework cannot deal with multple objects in model viewset

2019-12-05 Thread Matheus Almeida
Em quinta-feira, 20 de abril de 2017 23:18:03 UTC-3, Robin Lery escreveu: > > I have a very simple model and its related serializer and views: > > class Page(models.Model): > user = models.ForeignKey(User) > title = models.CharField(max_length=255) > pub_date =

Re: reg: How to call multiple APIView in one single web page as a list of items?

2019-12-05 Thread Daniel Roseman
On Wednesday, 4 December 2019 18:32:25 UTC, Amitesh Sahay wrote: > > I am in the process of developing a small project using django rest > framework, and within that requirement, I need to list every table in one > single page. Below is the code snippet. > > class QuizList(APIView): >

Re: class 'django.db.utils.ProgrammingError'

2019-12-05 Thread Ram
Hi, I'm also hitting the similar error. I would like to know what causes this error. Basically we are reading a XML file and extracting certain fields and values and inserting them to Postgres dB. We are using Pythin script to extract such data in our DJango + Postgres dB based site. Could

Re: CockroachDB & Django

2019-12-05 Thread Tim Graham
Cockroach Labs engaged me to work on the CockroachDB backend for Django. django-cockroachdb 2.2 alpha 2 (for Django 2.2.x) and 3.0 alpha 1 (for Django 3.0.x) are now available. These versions pass much of the Django test suite and are ready for real world testing. Be aware that the latest

Re: reg: How to call multiple APIView in one single web page as a list of items?

2019-12-05 Thread Integr@te System
Hi Issuer, U see QuizList bc of Question queryset been get validate_data when initilize quiz object instance. Plz refer to docs to customise ur other view. https://www.django-rest-framework.org/api-guide/serializers/ On Thu, Dec 5, 2019, 02:15 'Amitesh Sahay' via Django users <

Re: Django 3.0 Released.

2019-12-05 Thread אורי
Packages should not drop support for Django LTS versions which are still supported by Django. This is a mistake. I never had problems with using Django 1.11 LTS with our packages on Speedy Net. On the other hand, support for Django 2.0 by some packages was very late, sometimes after Django 2.1

Re: Django 3.0 Released.

2019-12-05 Thread Shaheed Haque
On that subject... On Thu, 5 Dec 2019, 15:12 Jonathan Morgan, wrote: > Another thing to consider is whether you need to update the packages you > use to build your application. I've found that support for the LTS version > of django is not consistent across packages, where support for the

Re: Django 3.0 Released.

2019-12-05 Thread Jonathan Morgan
Another thing to consider is whether you need to update the packages you use to build your application. I've found that support for the LTS version of django is not consistent across packages, where support for the latest version is much more consistent, such that sometimes a needed update to

Restricting url access in DetailView

2019-12-05 Thread Thiago Luiz Parolin
I have a form that when submitted (using POST) results in a ListView page. Clicking on the record displayed by ListView opens a detail page (DetailView). The initial form has a captcha that is validated to access the ListView page, but by using the DetailView url I can access the records without

new migrations coming up when blank=True in booleanfield in django 2.1+

2019-12-05 Thread anvesh Agarwal
As document says, https://docs.djangoproject.com/en/2.2/ref/models/fields/#booleanfield previously blank=True was implicit but in django 2.1+ , we have to add it externally. So i dont understand why new migrations are coming up for this? Does this mean that previously blank=True wasnt

class 'django.db.utils.ProgrammingError'

2019-12-05 Thread Jyoshna Musti
Hi, I'm trying to integrate data in PostgreSQL after the migration of the data while running im facing with this kind of error could you help me from solving this error and share me what all the cases will get this type of error. -- You received this message because you are subscribed to the