Multiple Forms in UpdateView

2018-12-10 Thread Lekan
Hello, is there a way to edit two update and save two forms from two different models with update view.. the issue is that i have two forms that i use in a single form format.now i want to write an update view for the it. how do i update two models in a updateView. -- You received this

Re: Multiple Users

2017-03-06 Thread Lekan Wahab
##This is one approach. You can have a single user profile and a number of other users tied to the user profile via ForeignKey. class UserProfile(models.Model): user = models.ForeignKey(User) #define general fields class Freelancer(models.Model): profile = models.ForeignKey(UserProfil

Re: Happy New Year 2017

2016-12-31 Thread Lekan Wahab
Happy New year guys. Let's do more of this next year. On Sat, Dec 31, 2016 at 7:49 PM, Robin Lery wrote: > Happy new year! > > On 1 Jan 2017 12:05 a.m., "pradam programmer" < > pradam.programm...@gmail.com> wrote: > >> Happy New Year Guys, i hope this year fill with alot of love, happiness >> an

Re: syncdb command can execute

2016-12-19 Thread Lekan Wahab
Would you provide a little more information? What errors are you getting? On Mon, Dec 19, 2016 at 11:56 AM, Navneel Pandey wrote: > hi i am new to django as i want to create a table but unable to do so I am > writing the command python manage.py syncdb > > -- > You received this message because

Django URLS

2016-11-17 Thread Lekan Wahab
If i have a url like *fruits.com*, does anyone know how i can write my subdomain urls in django to be *apple.fruits.com* instead of * fruits.com/apple* ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rec

ListField, JSONField and DictField

2016-11-03 Thread Lekan Wahab
ren't they available yet? Lekan. Python is the "most powerful language you can still read". -- 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

Re: One template for multiple views

2016-11-02 Thread Lekan Wahab
d' return response(yourtemplate, {'c':variableone, 'd' :variabletwo}) Also, if you have a repetitive section in your template, you could just write it once and use the {% include %} tag to use it in each of your other templates. I hope that helps. Lekan. Python is the &

Re: HTML Flexbox CSS

2016-09-25 Thread Lekan Wahab
Hi, In order to ease the work of making your changing your static files to the right URL format in Django, a friend of mine came up with a library called *Staticfy* for it. You can check it out on : https://github.com/danidee10/Staticfy It will really ease your work. On 25 Sep 2016 2:55 PM, "Ed

Re: Django migrate generates SQLite3 file filled with junk

2016-09-25 Thread Lekan Wahab
i kbman, If you use PyCharm, you can easily read the sqlite3 file better with its database integration. Click on database. Select from sources and then okay. Lekan. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Help with FlatPages

2016-09-19 Thread Lekan Wahab
Good morning guys, I'm trying to locally set up an existing project on my machine. While I've set up most of the project, the part giving me a hard time are the ones using flatpages. Now, everytime I access those, I get a "No Flatpages matches the given query. " error. I've tried everything

Maintaining old django code

2016-09-06 Thread Lekan Wahab
Good morning guys. I was handed a project at work which was written as far back as 2012. Quiet a lot of the packages used in the project are either no longer being maintained. Rebuilding the project from scratch is not option. There are way too many moving parts and way too many apps to rebuild it.

Re: hey.. are you there?

2016-08-24 Thread Lekan Wahab
Hi. On 24 Aug 2016 9:13 PM, "concussion" wrote: > good morning.. :) > > -- > 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...@googlegro

Re: Running Django Project Locally

2016-08-24 Thread Lekan Wahab
anded an eggs.zip containing the packages used by the developer. Now, the question is, how do i install the dependencies from the eggs.py file? I think its more of a python question than a django issue but i would still appreciate whatever help i can get. Lekan. On Wed, Aug 24, 2016 at 10:22 AM,

Re: Running Django Project Locally

2016-08-24 Thread Lekan Wahab
Thanks for getting back to me. ​So, i just figured *manage.py* would also require the *settings.py* which is missing now. What do i do about that? Lekan​ On Wed, Aug 24, 2016 at 8:48 AM, Mike Dewhirst wrote: > On 24/08/2016 5:23 PM, Lekan Wahab wrote: > >> Good morning, >&

Running Django Project Locally

2016-08-24 Thread Lekan Wahab
Good morning, I was recently given a django project to manage at work. However, i noticed the project has neither a django-admin.py or a manage.py file. Is that normal? If it is, how do i run the project on my local machine for testing purposes? The file structure is something like this: Project

Re: Django forms validation

2016-05-05 Thread Lekan Wahab
Akinyanmi" wrote: > Hello Lekan. I have responded inline but my answer might not be a complete > fix. > > On May 5, 2016 4:56 PM, "Lekan Wahab" wrote: > > > > Hello, > > Please, i have a model form in forms.py which am trying to validate and > upd

Django forms validation

2016-05-05 Thread Lekan Wahab
Hello, Please, i have a model form in forms.py which am trying to validate and update my database with. However, for some reason the form is not being validated. I have tried everything i could think of. It just reloads the page. views.py > from django.shortcuts import render > from information.f

Re: Django - Upload Image to the server with dimension

2015-12-29 Thread Lekan Wahab
Hello Guys. I have a website and am trying to build a rating system for the site. The system takes in user's rating and rewards them at the end of the month according to their ratings. I honestly dont know where to begin. i have searched for some things online but i still need help On Tue, Dec 29