Problem installing django on windows

2007-09-11 Thread Dean
ernal or external command, operable program or batch file. C:\django\testproject> Any help appreciated Thanks, Dean --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

Lookup Fields

2014-07-05 Thread Dean
> LOOKUP_PEOPLE = ( > ('person1', 'person1'), > ('person2', 'person2'), > ('person3', 'person3'), > ) > role_for_who = models.CharField('Role for', max_length=50, > choices=LOOKUP_PEOPLE) > Thanks in advance for any help. I almost had it - I wish - but don't think djan

Re: Django 1.6 + Mysql

2014-07-05 Thread Dean
The first place I look is in the last line of the error message. I don't think you have a MySQL connection, check in your error log file. On Sunday, July 6, 2014 8:03:56 AM UTC+8, Henrique Oliveira wrote: > > hi there, > > I am getting this error when using Mysql connector: > > File "/opt/b360/l

Re: models

2014-07-05 Thread Dean
You could start here http://www.djangobook.com/en/2.0/chapter05.html and look at a 1/3 down the page at the heading 'Your First Model'. Taking 'events' as an example, think about the data you need to record. For example, each event normally has a title, location, start date and time, end date a

Re: DateTimeField always returns None

2014-07-05 Thread Dean
I think there is a restriction in using 'date' in MySQL as a field name as it's some sort of inbuilt function. On Friday, July 4, 2014 5:01:15 PM UTC+8, William Granli wrote: > > I am trying to create a queryset for getting the values of a DateTimeField > which is DATETIME in the DB. > > The cl

Re: Lookup Fields

2014-07-06 Thread Dean
Spot on DR - thanks - for pointing me in the right direction :-) -- 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.co

Re: Tango with Django chapter 7 Exercises

2014-07-06 Thread Dean
have you tried turning it off and on again? :-) Just trying to cure the headache! Dean On Monday, July 7, 2014 3:02:32 AM UTC+8, Martin Spasov wrote: > > I am doing the exercises in chapter 7 > <http://www.tangowithdjango.com/book/chapters/forms.html#exercises> and I > have to

Re: Application Generators Comparison and Benefits list

2014-07-07 Thread Dean
No time for that, too busy... tortured and overwhelmed! :-/ On Tuesday, July 8, 2014 5:32:58 AM UTC+8, Dan Cancro wrote: > > Hi group, > > I made this comparison of things for starting a web application with > AngularJS and thought I would check here to see if a similar analysis had > taken plac

Re: Problem installing django on windows

2007-09-11 Thread Dean Edridge
nage.py runserver > It should work. > > Later, you can add the python path (C:\Python25 in the above example) > to your environment. > > Ahik > > On Sep 12, 7:12 am, Dean <[EMAIL PROTECTED]> wrote: > >> Hi >> I'm having trouble getting jdango working on

Re: Use .html at the end of the url instead of / ?

2007-10-17 Thread Dean Edridge
gives you more options in the future, but that's just my opinion :) Thanks, Hope that helps, -- Dean Edridge http://www.zealmedia.co.nz/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

Re: to login or not to login, that is the question

2006-09-10 Thread Dean Nevins
You should just use the Django auth system. It's fairly easy to use and it provides mechanisms for protecting views that you would have to duplicate anyway. If the default User object is too skimpy for you, you can add to it using UserProfiles or just create a table and link to the User. BTW, I'm

Re: Newtwork Marketing System

2023-06-20 Thread Dean Mahori
Hi anyone to teach me forex trading guys... On Thu, 15 Jun 2023, 11:36 Benjamin Schollnick, wrote: > Hi Everyone! > So I want to know how to implement a binary tree to a web app. > This is how the app works: > > — Person A opens an account > — Person A refers to people > — Person B invests, >

Django Form Doesn't Render

2011-02-14 Thread Dean Chester
Please correct the error{{ contractForm.errors|pluralize }} below. {% endif %} {{ contractForm.as_p }} But all that appears is my submit button so what am I doing wrong? Thanks in Ad

Re: django.contrib.auth.views.login customization

2011-02-16 Thread Dean Chester
I would write my own login controller using the Authentication and Login methods. Check out this part of the django docs: http://docs.djangoproject.com/en/1.2/topics/auth/#how-to-log-a-user-in Dean On 16 Feb 2011, at 13:51, galago wrote: > Is it possible, to add some extra validation che

geo data fixture with loaddata, YAML

2014-07-07 Thread Ben Dean
Hi, I wanted to cross post this here from the original on the geodjango group. I let the details stand there, but summarize here: Trying to use manage.py loaddata to get a YAML fixture containing a geoDjango "MultiPolygonField",

GeoDjango/PostGIS installation issues

2014-06-27 Thread Ben Dean
I'm stymied on installing GeoDjango with Postgres9.3 on Ubuntu. I've posted the details here , so any help would be appreciated and I can promise you all the internet points I'm capable of distributing! -

Django Admin Form clean method override only working for one exception

2018-01-04 Thread dean raemaekers
Hello, I am trying to override the Forms in the Django Admin interface to have custom exceptions in the clean() method. This works for my first validation, but it doesn't work for a second one in the same form, or on another form at all. I am wondering if I have the syntax wrong for multiple v

Re: Django Admin Form clean method override only working for one exception

2018-01-04 Thread dean raemaekers
Thanks Julio! This worked. On Thursday, January 4, 2018 at 2:59:16 PM UTC+2, Julio Biason wrote: > > Hi Dean, > > You forgot to call the form clean method (the first line after your `def > clean` should be `super().clean()` as shown in the documentation: > https://docs.django

ModelForm for model that includes multiple items of one kind

2019-03-30 Thread Dean Karres
Hi I am looking for some advice. I have a basic Profile model. It looks something like: Profile: first_name middle_name last_name birthday address_line1 address_line2 city state zip email phone I have a ModelForm that goes with this. This is sufficient for nearly all the cases I am trying to

Re: ModelForm for model that includes multiple items of one kind

2019-03-30 Thread Dean Karres
Thanks to the responders. I was unaware of formsets / midelformsets. I am reading about them now. Cheers -- 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

Update using columns from subquery

2019-06-21 Thread Dean Rabinowitz
I'm new to the community (this is my first topic here) so I apologize if I'm breaking any rules with this post. My goal is to update a table in my Postgres db using the values from a queryset only where some of the values are equal to the columns in my table. Essentially, I'd like to do the fol

New user question: Where to put non-form validation code?

2019-07-13 Thread Dean Karres
Hi, I am learning Django. I am using CBVs. My default "index.py" view is basically a dashboard for the app I am playing with. As my models and views become more complicated I want to be able to ask, for any model instance, is this instance "valid" or "complete". Valid means that all Requir

Re: New user question: Where to put non-form validation code?

2019-07-13 Thread Dean Karres
Thank you. There are way more parts to this than I would have imagined. On Sat, Jul 13, 2019, 8:01 PM Mike Dewhirst wrote: > On 14/07/2019 10:37 am, Dean Karres wrote: > > Hi, > > I am learning Django. I am using CBVs. My default "index.py" view is > basically

how do I use the url to filter?

2016-02-01 Thread Dean Johnson
Hello all, Hopefully someone can shed some light on this for me.. I have been following a blog tutorial, just to get used to Django, and how everything works with url/views/models etc... but I have become stuck. So I am able to go to the admin panel and create,save "blogs", when I visit http:

Django admin panel records disappearing

2018-07-23 Thread dean raemaekers
Hello, I am using the Django admin tool as an internal tool to reach into a remote database. Most of my models work perfectly with the save. method additions I have added, but there are 2 that are not working. What happens is that the admin screen gives a successful "save" message, but the gr

python manage.py inspectdb > models.py crashing with KeyError: options['no-color']

2018-07-24 Thread dean raemaekers
Hello, I am trying to use inspectdb to generate models for a legacy database. I get the following error: $ python custom_inspectdb.py Traceback (most recent call last): File "custom_inspectdb.py", line 8, in Command().execute(table_name_filter=lambda table_name: table_name in tables, da

New to this list question

2018-11-23 Thread Dean Karres
foot view of what I want to accomplish but it might be longish. Is that Ok here? Dean -- 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-user

Advice on choosing Django modules?

2018-11-23 Thread Dean Karres
Hi, I have been teaching myself python at the same time I am starting with Django. I have made a great deal of progress with both but am at a place where I could really use some advice. I am trying to build a specialized "Membership" application for a US based non-profit. The non-profit work

Re: E-comm live project

2024-05-04 Thread Dean Mahori
add me +263786881635 On Tue, Apr 30, 2024 at 3:23 PM Kintu Peter wrote: > Watsap +256789746493 > > > On Monday, March 18, 2024 at 8:26:50 PM UTC+3 1001_prabhjot Singh wrote: > >> so i am working on a full stack e-comm website and this project is really >> very big for me because it's a live pro

[no subject]

2024-05-05 Thread Dean Mahori
Dear Programmers, My name is Dean Mahori and I'm a student at Chinhoyi University . I'm working on a university project to build a website using the Django framework. I'm currently in the process of developing a website to better connect with our community and raise awareness

Re: E-comm live project

2024-05-06 Thread Dean Mahori
Add me +263786881635 Sent from Outlook for Android From: django-users@googlegroups.com on behalf of amruth bitla Sent: Monday, May 6, 2024 6:23:52 PM To: Django users Subject: Re: E-comm live project Hi 1001_prabhjot Singh, I am inter

Context processors, am I doing them right?

2015-02-03 Thread Dean De Leo
e or does it exist something clearer? Moreover, is there the chance to pass explicitly a variable from the url mapping to the context processor ? Kind regards, Dean -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from t

Django QuerySets, how to express EXISTS ... IN ...

2015-02-08 Thread Dean De Leo
tags. For instance, I would express the query in SQL as: SELECT * FROM blog_blog b WHERE EXISTS ( SELECT 1 FROM blog_tag t WHERE t.blog_id = b.id AND lower(t.name) IN ('tag1', 'tag2', 'tag3') ); How to represent the same query with the Django QuerySets ? Thanks,

Re: Django QuerySets, how to express EXISTS ... IN ...

2015-02-08 Thread Dean De Leo
DateTimeField(auto_now=True); class Meta: ordering = ['-id'] class Tag(models.Model): name = models.CharField(max_length=255, null=False) blog = models.ForeignKey('Blog', null=False) class Meta: unique_together = [("name", "blog

Admin List Per Page Dropdown UI

2015-07-07 Thread Dean Christian Armada
Hi Everyone, Is there an available option in the UI of Django Admin to manually select how many records to be shown per page? -- 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, sen

Re: Admin List Per Page Dropdown UI

2015-07-07 Thread Dean Christian Armada
This is not what I meant.. This will just set once the admin is loaded. What I want is I can manipulate the number records shown within the interface On Tuesday, July 7, 2015 at 7:34:23 PM UTC+8, larry@gmail.com wrote: > > On Tue, Jul 7, 2015 at 7:12 AM, Dean Christian Armada >