Re: Is it possible to create models inside a database model

2018-07-10 Thread aditya gupta
Well I was thinking is that instead of using related_name is there any other way I can write and call my images inside css lightbox for the slide show. On Wed, Jul 11, 2018, 12:42 AM Alexander Joseph < alexander.v.jos...@gmail.com> wrote: > Oh ok I see. The related_name is what you use to access

Re: Is it possible to create models inside a database model

2018-07-10 Thread Alexander Joseph
Oh ok I see. The related_name is what you use to access the specific field in the template so it needs to be unique to the model field. When you use the ForeignKey field type it uses the primaryKey of the related database models automatically so you dont need to worry about actually telling it

Re: Using multiple keyword arguments with reverse()

2018-07-10 Thread Melvyn Sopacua
On maandag 9 juli 2018 14:58:25 CEST Derek wrote: > Thanks Melvyn > > The call to reverse() *was* included in my original code snippets: see > below. > > > return HttpResponseRedirect( > > > > reverse('uploads:upload_details', > > > > kwargs={'view': view,

Re: Django + WSGI: no HTTP_COOKIE in environ

2018-07-10 Thread Melvyn Sopacua
On dinsdag 10 juli 2018 14:40:41 CEST need_some_help wrote: > I've followed numerous examples, but the only one that does not return > errors are the implementations of the two functions below. There doesn't > seem to be an HTTP_COOKIE key in the environ. The request value only gets > set with

Re: Django-Autocomplete-light Styling Input Box

2018-07-10 Thread Melvyn Sopacua
On dinsdag 10 juli 2018 15:24:16 CEST umar...@gmail.com wrote: > But now I'm not able to change the input box create by autocomplete-light. > I've seen we can create ours custom html base on the receive data from the > database but is there a way to just use the default Html and CSS created by >

Re: Best way to create a Purchase Order App?

2018-07-10 Thread oon arfiandwi
Hi, I have similar app which I implement with Django (FBV not CBV, but actually it would be similar). My approach is using Django Formset, which I generate the Purchase Order View with forms.modelform_factory() [1] and the Purchase Detail View with forms.inlineformset_factory() [2] but still, to

Best way to create a Purchase Order App?

2018-07-10 Thread Alexander Joseph
I'm trying to think of how I would make a purchase order app, where the purchase order itself has its details/information (vendor name, shipping type, payment terms, etc.) but it also has an unspecified (could be 1, could be 10, could be 20) actual purchase items with their own

Re: Is it possible to create models inside a database model

2018-07-10 Thread Alexander Joseph
Also- this is assuming you're using CBVs, if youre just using FBVs its probably even easier on the view side, the model side would be the same On Tuesday, July 10, 2018 at 10:23:51 AM UTC-6, Alexander Joseph wrote: > > Good question - I'm looking for a similar solution myself. My application >

Re: Is it possible to create models inside a database model

2018-07-10 Thread Alexander Joseph
Good question - I'm looking for a similar solution myself. My application is a purchase order app so that a purchase order has details about the purchase order but also has an unspecified number of objects that belong to it (purchase items). The only way I can think this MIGHT work is making a

Is it possible to create models inside a database model

2018-07-10 Thread aditya
I have created a model Named Gallery and set upload path to media folder and in that folder I have 15 more folders with different images. Now I want to access each folder and images present inside it using database. My question is : Is it possible to create 15 model inside an model and if

RE: Configuring Remote Existing DB through RDS

2018-07-10 Thread Matthew Pava
One thing that stands out to me is that the exception message indicates that it is looking for “detectiondata_dev” instead of “detectiondata-dev”. Also, did you run migrations? From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of acka...@ucsd.edu Sent: Monday,

Django-Autocomplete-light Styling Input Box

2018-07-10 Thread umarcja
Hi, this is my first post, please tell me if anything is wrong with the way I wrote question. I am actually learning Django and I'm facing a little problem. I've install a Postgres Database on my PC and link this Database to my Django Project. I've install django-autocomplete-light to search

Re: Beginner

2018-07-10 Thread Harsh Rawat
Identifying a useful name means ? > > -- 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 post to this group, send

Django + WSGI: no HTTP_COOKIE in environ

2018-07-10 Thread need_some_help
I've followed numerous examples, but the only one that does not return errors are the implementations of the two functions below. There doesn't seem to be an HTTP_COOKIE key in the environ. The request value only gets set with POST and GET. Think something is wrong with my setup, because none

Re: about book

2018-07-10 Thread Rakesh Singh
you can prefer e-book for better learning. On Tue, Jul 10, 2018 at 4:46 PM, tribhuvan kishor < tribhuvankishor...@gmail.com> wrote: > can any one suggest me a better book for django > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To

Re: manage.py linux mint TypeError

2018-07-10 Thread Daniel Hepper
Your model class definition is wrong. It should be: class Question(models.Model): On Tue, Jul 10, 2018 at 1:29 PM Forest Rally Media < bornsupercars@gmail.com> wrote: > Hi there guys! I'm pretty new to the "django" game and I'm having a little > trouble with the manage.py function of

manage.py linux mint TypeError

2018-07-10 Thread Forest Rally Media
Hi there guys! I'm pretty new to the "django" game and I'm having a little trouble with the manage.py function of the app. It's asking me to put in this code mysite/manage.py makemigrations polls but when selected into the linux terminal this pops up... Traceback (most recent call last): File

about book

2018-07-10 Thread tribhuvan kishor
can any one suggest me a better book for django -- 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 post to this

Re: Beginner

2018-07-10 Thread Harsh Rawat
Thanks a lot On Thursday, 28 June 2018 12:04:26 UTC+5:30, TonyF-UK wrote: > > On 27/06/18 21:23, Harsh Rawat wrote: > > I have learnt Django a little bit. I need help regarding the ticket > > https://code.djangoproject.com/ticket/28905 .What should I learn in > > Django to be able to

Re: Python / Django slow ? Deciding my next technological stack

2018-07-10 Thread ijazz jazz
*Python Training in Bangalore* *Best Python Training Courses in Bangalore – Marathahalli, BTM Layout, Rajajinagar, Kalyan Nagar & Jaya Nagar*. We train the students from basic level to advanced

Re: Python & Django.

2018-07-10 Thread ijazz jazz
*Python Training in Bangalore* *Best Python Training Courses in Bangalore – Marathahalli, BTM Layout, Rajajinagar, Kalyan Nagar & Jaya Nagar*. We train the students from basic level to advanced

Python Training in Bangalore

2018-07-10 Thread ijazz jazz
*Python Training in Bangalore* *Best Python Training Courses in Bangalore – Marathahalli, BTM Layout, Rajajinagar, Kalyan Nagar & Jaya Nagar*. We train the students from basic level to advanced

Re: Static files not rendering in project

2018-07-10 Thread useracct222
Thank you for your response. It seems I needed: from django.contrib.staticfiles.templatetags.staticfiles import static and then from view.py, call static("image.png") and pass this to the context. Not sure why exactly this works, so if you care to elaborate, I'm all for learning. Thanks. On

Re: django template rendering performance

2018-07-10 Thread Andrew Paulsen
No, Django renders the templates. Masoud, if you suspect there are negative difference between 2.7 and 3.5, please try to make a minimal app showing off the problem so the devs can fix it. On 2018-07-10 09:11, mottaz hejaze wrote: > i dont think so . rendering templates , though rendering