Managing multiple user types in Django

2018-05-15 Thread Frankline
Hello Everyone, I am developing an API based on Django Rest Framework . Currently I have 4 user types i.e. Buyer, Merchant, Insurer, and Admin. The system I'm developing has an *API endpoint* and a *Dashboard* view. Each of the above user types have

How to create a custom widget using django for use on external sites

2017-10-02 Thread Frankline
I hava a new site that I am working on. The site will have prior agreement with eCommerce sites to include add-ons on their website. Consider the following example: My website, ABC.com is targeting ecommerce sites. For every ecommerce site that sells product X, I want them to include an add-on

Looking for a good Django Forum

2015-09-04 Thread Frankline
Hi all, Anyone know of a good forum that integrates nicely with django? Specifically both the Forum and django app should use the same userbase. Also something that is easy to integrate and theme. I have been looking at both LBForum and DjangoBB. Interested to hear from those who have actually

Multiple User Roles design

2015-06-13 Thread Frankline
at the time of registration.* *Is there a better way to handle this apart from the above? What are the best practices to follow in this case? Or perhaps add a UserProfile?* *Regards,* *Frankline* -- You received this message because you are subscribed to the Google Groups "Django users&q

Re: How to handle model constants

2015-02-23 Thread Frankline
> > I usually store model choices directly in the model, since they don't > generally apply anywhere else. > > Whatever you do, try to keep it consistent. > > -James > On Feb 23, 2015 12:07 AM, "Mike Dewhirst" <mi...@dewhirst.com.au> wrote: > >> On

How to handle model constants

2015-02-22 Thread Frankline
Hi all, I am getting confused regarding the use of constants and would be keen to know how the rest of you handle constants in your models. Ofcourse I could handle it easily similar to how it has been handled here:

Unable to save object with images while using FormWizard in Django 1.7 and Python 3.4

2015-01-22 Thread Frankline
​Hi all​, I am having a problem saving a Django form using the *FormWizard * while using *Django 1.7* and *Python 3.4*. Below is my code: *models.py* ...class Advert(models.Model): ... # Some irelevant code removed for

Re: Evaluating variables in a blocktrans block within templates

2014-12-18 Thread Frankline
Nicely answered. Thanks Andreas. On Thu, Dec 18, 2014 at 3:27 PM, Andreas Kuhne <andreas.ku...@suitopia.com> wrote: > > Hi Frankline, > > You can only reference variables in the templates directly with the > blocktrans tag. See > https://docs.djangoproject.com/en/1.7

Evaluating variables in a blocktrans block within templates

2014-12-18 Thread Frankline
{% endblocktrans %} HOWEVER, THIS WORKED {% blocktrans with objects.count as objects_count%}Approve all {{ objects_count }} users{% endblocktrans %} Can someone explain to me the reason behind why the last code statement worked as opposed to the first one? Thanks. With Regards, Frankline -- You

Making a field Read-Only in Django

2014-11-16 Thread Frankline
Hi all, I'm running Django 1.7 and Python 3.4. I'm trying to make the username field of my custom model to be read-only. I think this is usually set in the form. Below is what I currently have in my *forms.py* class AuthUserChangeForm(UserChangeForm): """ A form for updating users.

AUTH_USER_MODEL does not accept sub application

2014-10-27 Thread Frankline
I am having problems with my custom user model while using Django 1.7.1 and Python 3.4. I have declared a Custom user model in an apps.users.AuthUser. I then have another application (apps.pets) that will use the AuthUser as a ForeignKey in a Pet model. See below: class Pet(models.Model):

Django 1.7 User login via Email or Username

2014-10-15 Thread Frankline
or AbstractBaseUser. Any links to example tutorials will also be greatly appreciated. Regards, Frankline -- 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

How to implement chained/related dropdown lists in a page

2014-10-07 Thread Frankline
I am interested in knowing how other developers implement chained dropdown lists that are dependent on one another. As an example, I have a page/form that has two dropdown lists. When I select a value from the first select, I want the second dropdown to be populated by records related to the first

Forcing Django to use INNER JOIN instead of LEFT OUTER JOIN

2014-07-24 Thread Frankline
I have implemented search in my Django application to allow searching by more than one field. This results in Django always using a LEFT OUTER JOIN, which in my case generates the wrong results. However, when I change the SQL generated from a LEFT OUTER JOIN to an INNER JOIN, it returns the

Re: looking for a good tutorial for creating user with fb,tw,google login

2014-07-19 Thread Frankline
Have you tried django-allauth? http://django-allauth.readthedocs.org/en/latest/ On Sun, Jul 20, 2014 at 6:25 AM, Bussiere wrote: > I am looking for a good tutorial on how to log user with fb,tw, google and > record them in db. > > I've tried python-social-auth and this

Instantiating a ModelForm with initial values in CBVs

2014-06-14 Thread Frankline
I am a Django newbie working with Django CBVs and having difficulty setting initial values for my ModelForm. To give an overview, I am trying to learn by creating a simple messaging app. Here is my code: models.py - import datetime from

Django authentication by email

2014-05-15 Thread Frankline
Hi all, I am thinking of developing a web application where users will have to login by their email address instead of using their usernames. Now I know I can do this by writing my own auth backend, but I'm just curious how the rest of you handle this. Do you normally use third party packages to

Re: Digging Up Django Class-based Views

2014-02-16 Thread Frankline
Hi Leo, I have struggled to understand CBVs before and avoided using them most of the time. I looked into your posts and it has been very useful. Written in clear simple English. Now I can't wait to use them in my current and next projects. :-) Thank you. Frank On Fri, Feb 14, 2014 at 4:11

Re: No settings file in Django tutorial.

2013-09-23 Thread Frankline
You are trying to change directory through a file i.e. settings.py. This is obviously not a directory but a file. In any case, it does not exist within that directory level. What you need to do is: $ cd winker $ ls And you will see your setting file I am assuming your directory structure is as

Re: ANNOUNCE: Django 1.6 alpha 1 released

2013-05-26 Thread Frankline
Swt! On Mon, May 27, 2013 at 7:30 AM, Jacob Kaplan-Moss wrote: > Hi folks -- > > I'm pleased to announce that we've just released Django 1.6 alpha 1, > the first in our series of preview releases leading up to Django 1.6 > (due in August). > > More information can be

Re: Creating a Djang Webpage

2013-04-16 Thread Frankline
Google is your friend. An example: http://stackoverflow.com/questions/5871730/need-a-minimal-django-file-upload-example On Tue, Apr 16, 2013 at 3:48 PM, Augusto Santos wrote: > Hey guys, > > So, I am new in Django framework and I would know how to make a simple >

Re: Webfaction vs DigitalOcean

2013-04-03 Thread Frankline
I love the simplicity of Webfaction and I'm happy with it. On Wed, Apr 3, 2013 at 1:10 PM, frocco wrote: > Very happy with webfaction and their support. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To

Re: What are the steps to build a website?

2013-03-25 Thread Frankline
My advice: Stop making resolutions and just start something. You will be happier if you do. Along the way, you'll have gained an understanding of your project to so much more. That is how I learned. Do not be afraid to make mistakes along the way. On Mon, Mar 25, 2013 at 2:58 PM, Tim Cook

Re: Django Framework Biginer guide please

2013-01-30 Thread Frankline
Just a question: How is Putty and OpenERP relevant to the question? In the meantime, you can start here: https://docs.djangoproject.com/en/1.4/ On Wed, Jan 30, 2013 at 12:49 PM, Vikas Yewale wrote: > I am new in Django-Python.so want guide to develope web based

Re: Django hosting companies

2013-01-29 Thread Frankline
Have you tried webfaction? Very easy to setup. On Tue, Jan 29, 2013 at 4:30 PM, Gustavo Andres Angulo wrote: > There is a similar solution to Heroku, called nuagehq.com > > > > regards > > On Tue, Jan 29, 2013 at 8:17 AM, francislutalo > wrote: > >

Re: webhosting for django projects with SQLite

2013-01-25 Thread Frankline
+1 for Webfaction. Simple to use. Though I'm using Postgres, SQLite can also be used IMO. On Sat, Jan 26, 2013 at 8:31 AM, william ratcliff < william.ratcl...@gmail.com> wrote: > I'll second webfaction, but just curious--why SQLite? They make Postgres > not so hard to set up... > > > On Sat,

Re: Django CRM Tool

2013-01-15 Thread Frankline
I've just seen the koalixcrm. Nice interface. On Wed, Jan 16, 2013 at 12:05 AM, scaphilo wrote: > Hi > Well this thread is a bit outdated but as you have not had any answers yet. > > Insted of starting from scratch you could perhaps start with > www.koalix.org >

Re: Happy new year

2013-01-01 Thread Frankline
Happy new year from Kenya. On Jan 2, 2013 9:41 AM, "Vibhu Rishi" wrote: > Happy new year from India ! > > Keep Djangoing ! > > V. > > On Wed, Jan 2, 2013 at 4:56 AM, Elena Williams wrote: > >> Happy New Year from to all the Djangonauts from stonking hot

Re: Problem with django sitemap

2012-12-17 Thread Frankline
But the sites framework has already been installed, as you can see from my settings file. On Tue, Dec 18, 2012 at 10:44 AM, Sandeep kaur <mkaurkha...@gmail.com>wrote: > On Sun, Dec 16, 2012 at 10:55 PM, Frankline <fraogo...@gmail.com> wrote: > > > > I'm having a proble

Re: Problem with django sitemap

2012-12-17 Thread Frankline
Anyone??? On Sun, Dec 16, 2012 at 8:25 PM, Frankline <fraogo...@gmail.com> wrote: > I'm having a problem implementing the sitemaps in my application. I'm > using Virtualenv, django 1.4 and Python 2.7. I would appreciate if you > can help me resolve this. > > This is wh

Using Emails to authenticate

2012-11-04 Thread Frankline
Hi all, I guess this question has been asked here a couple of times but I'm going to ask it anyway. I'm developing a Django application/website and I have a need to use the email for authentication instead of username. I'm more keen to find out how you handle the following: - The default length

Re: To Use or Not to Use the admin backend

2012-09-03 Thread Frankline
witcherybut > she has also said that she's working on a custom admin > > So my advice. Use it as the tool that it is. Build what it can't do, don't > spend more time on it than you have to. > > On Monday, September 3, 2012 8:38:24 AM UTC-7, Frankline wrote: >> >>

To Use or Not to Use the admin backend

2012-09-03 Thread Frankline
Hi, I'm creating a site in Python/Django and feel that the admin backend, as good as it is, may not be a one-fit-for-all situations. My question is this: Have any of you ever had a need to have a custom admin backend? In what example situations would one create his/her own admin backend rather

Starting a Django Project the Right Way

2012-07-26 Thread Frankline
independet install of your project (using virtualenv) 4. Automated deployment and testing (using Fabric) 5. Automatic database migrations (using South) 6. A solid start to your new site Regards, Frankline -- You received this message because you are subscribed to the Google Groups "Django

Re: Advices on what web programming language used in template?

2012-07-03 Thread Frankline
- PHP - Java/JSP/Spring or Struts and even JSF But then again, it would help if you were more clear on what you need. This is 'mostly' a Django forum. Regards, Frankline -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: New to Django, need help starting

2012-06-20 Thread Frankline
Have you tried 'python django-admin.py startproject iFriends' Make sure your python path installation can be found. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To

Re: I need a programmer Python Django

2012-06-14 Thread Frankline
It would be best if you listed the requirements or at the very least what the app is all about. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group,

Re: Django-registration tutorial + code

2012-05-16 Thread Frankline
This link should provide a few pointers, though a bit old. http://www.djangobook.com/en/beta/chapter12/ F.O.O -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe

Re: Help - Which IDE is best to use.

2012-05-16 Thread Frankline
@yati : True. I believe the following links should answer and, hopefully, close the discussion: http://stackoverflow.com/questions/126753/is-there-a-good-free-python-ide-for-windows http://stackoverflow.com/questions/81584/what-ide-to-use-for-python Regards, F.O.O. -- You received this