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
Hi guys, This question just came to me this evening and I've really been thinking about it. Can someone explain to me why Django doesn't have ListField, JSONField or DictField by default in its model Fields? I mean, these are obviously things that would ease a lot of work so why aren't they avai

Re: One template for multiple views

2016-11-02 Thread Lekan Wahab
Hi, I'm not sure I completely understand what you need but if I do, I think passing different contexts to the same template would help you achieve that. You could easily have something like : def initial_view(request) : variableone = 'a' variabletwo = 'b' return response(you

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
On 25 Sep 2016 1:17 PM, "kbman99" wrote: > > Just getting started with django and having an issue with the migrate.py script. It generates a db.SQLite3 file which is filled with a lot of garbage characters. It's in UTF-8 encoding, but looks like this. > > I've deleted the file and redone the mig

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
Mike Dewhirst wrote: > On 24/08/2016 6:42 PM, Lekan Wahab wrote: > >> 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? >> > > That depends. Is the

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