My newly added model doesn't appear on the user's side of the site

2020-02-23 Thread fred rick
The new model appears on the admin site but doesn't appear on the user's side. I set the rules to (null=True, blank=False). What could be the possible solution -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: Issue with Django Password Normalization

2016-04-21 Thread Rick Leir
Here are links to the dev discussions. https://groups.google.com/d/msg/django-developers/MBSWXcQBP3k/XgWzGhpDBAAJ On Thursday, 21 April 2016 10:47:43 UTC-4, Arun S wrote: > > thanks for some very useful information. > > I did raise this in the dev forum but it was not agreed to be a question > in

Re: Issue with Django Password Normalization

2016-04-21 Thread Rick Leir
ango-developers/password You raised an issue in Trac, which is different. I agree with Michal that this is worth looking at, and will pop it into a post in the dev list. cheers -- Rick django/contrib/auth/models.py line 308 or so https://docs.python.org/2/library/re.html \wWhen the LOCALE <h

Re: Issue with Django Password Normalization

2016-04-21 Thread Rick Leir
normalize the chars. And as you say, it is a topic for the dev list. But how important is this issue? Yes, it is security related. But it is far from critical in my mind. On Wednesday, 20 April 2016 10:22:27 UTC-4, Rick Leir wrote: > > There is also a new issue in Trac on this topic. I ad

Re: Issue with Django Password Normalization

2016-04-20 Thread Rick Leir
check whether it fails. My guess (tho I am new to this) is that this is a Django issue not Python. Cheers-- Rick -- 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 e

Django Migrations - Relation Already Exists

2015-04-23 Thread Rick Weinberger
I posted the same question on stack overflow, here: http://stackoverflow.com/questions/29830928/django-db-utils-programmingerror-relation-already-exists I basically can't figure out how to get my app to migrate, and I can't use syncdb, because I inherit from contrib.auth. I also can't find any

Configurable safety options for high performance Django systems

2014-11-18 Thread Rick van Hattem
Hi guys, As it is right now Django has the tendency to kill either your browser (if you're lucky) or the entire application server when confronted with a large database. For example, the admin always does counts for pagination and a count over a table with many rows (say, in the order of 100M)

handling field DoesNotExist error within a model class

2013-11-01 Thread Rick Shory
I have a model "Channel" with various foreign key fields (e.g. "data_type" below). I have a __unicode__ method to give intelligible information about the model instance by pulling in the foreign key info. For example: def __unicode__(self): ... t = self.data_type

"Writing your first Django app" Tutorial Question

2012-10-12 Thread Rick Chong
l.choice_set.all %} > > {{ choice.choice }} > > {% endfor %} > > > > The scripts run My question: In views.py, I only import Poll class from model... why am I able to display choice, which is a variable under Choice class? Thank you very much. Rick -- You received t

Re: view didn't return an HttpResponse object....plz help

2012-07-06 Thread rick girdhar
after entering number in the template page .am getting the error,that is: NoReverseMatch at /record_system/studentid/ Reverse for 'record_system.views.search' with arguments '(None,)' and keyword arguments '{}' not found. and this is my new updated view.. def search(request , rollno):

view didn't return an HttpResponse object....plz help

2012-07-04 Thread rick
i want to filter roll no from database,but when i enter the number ,browser gives *view didn't return an HttpResponse object* this is my view.. def studentid(request): if request.method == 'POST': form = Student_loginForm(request.POST) if form.is_valid(): cd =

am new bird to django,need some suggestion...please please do reply friend..

2012-07-01 Thread rick
hello django lovers, am new bird to this language and i have read django documentation and did not able to learnt it properly . am making a small application of *students management system *,in which i have to do*insertion of new record ,deletion and search of record. *..and am facing problem a

i want to display a student profile from the database and am unable to do that.plz help

2012-06-30 Thread rick
this is my views.py. def studentid(request): if request.method == 'POST': form = Student_loginForm(request.POST) if form.is_valid(): cd = form.cleaned_data rollno = cd['rollno'] p = form.save() rollno = request.POST.get('rollno')

am new to use forms in django..

2012-06-29 Thread rick
i dont knw where to make a form...right now i am making form in model.py ,with the name Student_loginForm class..and when i make a template to run on servererror comes is TypeError at /record_system/studentid 'DeclarativeFieldsMetaclass' object is not iterable thanks in advance.

Re: am new to the django ,facing problem in searching the database with primary key(student id)

2012-06-26 Thread rick
thanks my friend... On Tuesday, June 26, 2012 6:29:10 PM UTC+5:30, bruno desthuilliers wrote: > > > > On Tuesday, June 26, 2012 8:47:27 AM UTC+2, rick wrote: >> >> Reverse for 'add_record.views.search' with arguments '(> Student_login object>,)' a

am new to the django ,facing problem in searching the database with primary key(student id)

2012-06-26 Thread rick
Reverse for 'add_record.views.search' with arguments '(,)' and keyword arguments '{}' not found. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/_HT0ni6iu

Running Django on a Shared-Hosting Provider with Apache

2011-07-20 Thread Rick Beacham
Running Django on a Shared-Hosting Provider with Apache When i go to run the mysite.fcgi it prints out itself in the browser..Is there something wrong here? I have followed the steps to the tee.. http://localhost/mysite.fcgi print out this: import sys, os # Add a custom Python path. sys.pat

Scientific Linux with django running through apache and fastcgi

2011-07-19 Thread Rick Beacham
here is my problem.. After trying to run on localhost/hello/ through lynx I get a 500. This is what htttpd error_log file prints out. I am not using socks, i am using tcp host port 3303. [Tue Jul 19 13:23:16 2011] [error] [client 127.0.0.1] (13)Permission denied: FastCGI: failed to connect to se

Re: Setting up Django with fastCGI on centos with apache

2011-07-19 Thread Rick Beacham
: vt100 USER : root _: /usr/local/bin/python Cheers mate. On Jul 19, 11:19 am, Tom Evans wrote: > On Tue, Jul 19, 2011 at 5:05 PM, Rick Beacham wrote: > > thanks for the info.  I corrected the this but i'm still having issues. >

Re: Setting up Django with fastCGI on centos with apache

2011-07-19 Thread Rick Beacham
thanks for the info. I corrected the this but i'm still having issues. On Fri, Jul 15, 2011 at 2:35 PM, ionic drive wrote: > Hello Rick, > > Address already in use, tells you that on 127.0.0.1 specific port 8000 > already a process is running. I guess you have your Apache

Setting up Django with fastCGI on centos with apache

2011-07-15 Thread Rick Beacham
I'm having alot of trouble with setting up django with fastCGI. I was able to use the default test server made with django no problem. But I'm having trouble setting it up with httpd and fastCGI in scientific linux(centos).. Here is the error message after running this command ./manage.py runfc

Re: authentication switching mid-session

2011-06-13 Thread Rick Macurak
Chris, did you ever arrive at a solution to this problem? I believe I'm experiencing something similar, if not exactly the same. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com

Re: LibGeos in Windows XP

2011-03-21 Thread Rick
Try:- Download http://download.osgeo.org/osgeo4w/release/geos/geos-3.2.2-1.tar.bz2 Extract Files copy bin/geos_c.dll to c:\Python27\DLLs\ Add following to settings.py GEOS_LIBRARY_PATH='c:\Python27\DLLs\geos_c.dll' I had same problem with 1.2.5, above fix for 1.3-rc1 On Feb 3, 2:59 pm, Norecc

Re: Django, syncbd just stopped working, can't figure out why

2010-08-27 Thread Rick
thanks, yeah I realized that after posting which is why I deleted the question, I should've researched a bit more before posting On Aug 27, 5:45 pm, Steve Holden wrote: > On 8/27/2010 8:37 PM, Rick wrote:> I just had my syncdb in django stop > working, where it won't updat

Any database retrieve query that i do returns nothing, what may I be doing wrong?

2010-08-27 Thread Rick
I have been able to get my database queries to work properly for deleting existing entries and also adding new entries to the database but I am completely stumped as to why I am unable to retrieve anything from my database. I am trying a query such as: from web1.polls.models import Poll retquery =

Django, syncbd just stopped working, can't figure out why

2010-08-27 Thread Rick
I just had my syncdb in django stop working, where it won't update any changes I make to any of my models. When I run it in the terminal it doesn't give any output just instantly returns a new terminal input line (meaning it ran through the script but didn't do anything I guess would be the way to

Re: Using variables / strings to call objects (such as in making database call)?

2010-08-24 Thread Rick
odelclass = globals()['modelname'] > > for example:>>> import os > >>> o=globals()['os'] # or locals() depending on context > >>> o > > > > to import by passing a string try help(__import__) > > On 24 August 2010 12:19, Rick

Re: Using variables / strings to call objects (such as in making database call)?

2010-08-24 Thread Rick
;t have such method. you > should use smth like modelclass = globals()['modelname'] > > for example:>>> import os > >>> o=globals()['os'] # or locals() depending on context > >>> o > > > > to import by passing a string try help(

Re: Documentation problems: Django at a glance

2010-08-24 Thread Rick
I agree with Bruno.. I'm a new user to Django, just started a week ago, coming from using just Python (for about a month) and had been using PHP frameworks before that).. I understood the purpose of the tutorial as just a basic intro, I think that its generally implied that once you get the basic "

Using variables / strings to call objects (such as in making database call)?

2010-08-24 Thread Rick
I'm using Django as my framework but am doing things beyond regular web development as I have some a lot of "components" outside of any of the django apps that I am often interacting with and, in some of these, I want to be able to make calls to the database for a model but want to be able to pass

Different Django instances running on the same server

2010-08-12 Thread Rick Caudill
Hi, Is it possible to run Django 1.1 and Django 1.2 on the same server? I have some legacy apps that I need to port to 1.2 but until then I would still like to run 1.1 and also at the same time run 1.2 for some new apps. Is this possible -- Rick Caudill -- You received this message

Providing flatpages initial data

2010-02-19 Thread Rick Caudill
o provide the data run 'python manage.py loaddata data.json' I hope this helps someone that needs to do this sort of thing. -- Rick Caudill -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Django Generator

2010-02-10 Thread Rick Caudill
Sorry... It is Brice... My bad. Rick On Wed, Feb 10, 2010 at 7:48 AM, Rick Caudill wrote: > I want to say good job Brian. I can see how this could be very useful. > > Rick > > > On Tue, Feb 9, 2010 at 2:58 PM, Brice Leroy wrote: > >> Hello everybody, >> &

Re: Django Generator

2010-02-10 Thread Rick Caudill
I want to say good job Brian. I can see how this could be very useful. Rick On Tue, Feb 9, 2010 at 2:58 PM, Brice Leroy wrote: > Hello everybody, > > I've been working for a week on this idea of a generator for django > project. The goal is to provide a simple architecture th

Django reporting....

2010-01-29 Thread Rick Caudill
7;,'address','student','studentclass.student','access_restrictions','photo') extra_fields={'Student':{'age':CALLABLE}} StudentFieldsFormset = formset_factory(StudentFieldForm,formset=FieldFormSet) StudentReportFormset =

Re: Form formatting

2010-01-28 Thread Rick Caudill
ne} > >th {align: right} > > > > > > > > {% include 'menu.html' %} > > > > > > > > {{ form.as_table }} > > > > > > > > > > > > > > > > On Jan 28,

Re: Form formatting

2010-01-28 Thread Rick Caudill
at > http://groups.google.com/group/django-users?hl=en. > > -- Rick Caudill -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send em

Re: Support for MS SQL Databases

2010-01-28 Thread Rick Caudill
Hi, Doing a google search for 'django mssql' results in: http://code.google.com/p/django-mssql/ Now as I see it this version does not support 1.2 and I am not sure how reliably this works but it is worth a shot Rick Caudill On Thu, Jan 28, 2010 at 1:25 AM, sridharpandu wrote:

Re: Django Settings File - Where is it?

2009-12-17 Thread D. Rick Anderson
Make sure you started a project first: django-admin.py startproject myapp cd myapp vi settings.py On Thu, Dec 17, 2009 at 4:01 PM, reactosguy wrote: > Where is the Django settings file? I read the docs but I am confused. > > -- > > You received this message because you are subscribed to the Goo

Re: Pre-populating forms with foreign keys

2009-12-16 Thread D. Rick Anderson
Not sure on the Django side, but I know that most forum software uses a separate table for threads, having the posts refer back to the thread_id. The first post, would obviously be the topic of the thread. On Wed, Dec 16, 2009 at 9:31 AM, Stewart wrote: > Disclaimer: This is my first Django adve

Legacy Postgres Database and Sequencers

2009-12-15 Thread D. Rick Anderson
Hi all! I'm new to Django (been a Zope developer for years), and I'm working on an app to front-end a legacy postgres database, and running into a few snags. The database uses sequences for all of the PKs, and when I attempt to insert a new record: i = Person(name="Rick", fac

Re: Django Admin interface crashes with.

2009-11-12 Thread Rick Caudill
I do have non-ascii data in my database. That is allowed, right??? On Thu, Nov 12, 2009 at 6:55 PM, Matt Schinckel wrote: > On Nov 13, 7:06 am, Rick Caudill wrote: > > Hi Everyone, > > > > This is my first time posting but I have been using Django for about a > >

Django Admin interface crashes with.

2009-11-12 Thread Rick Caudill
Hi Everyone, This is my first time posting but I have been using Django for about a year now and love it. I am having one problem that I can't solve though and it is taking too long so I thought I would ask and see if someone can help me. So I have a Admin interface that is crashing. The error t

Re: Subject: Model Inheritance

2009-06-26 Thread Rick
t.com/ticket/7623 > > Karen While this can't be done through Django's ORM, shouldn't it still be possible to create an instance of the subclass by inserting a row in the subclass's table? I know this can't be done through the admin interface, but it does provide a wo

Re: Scientific Data Frontend with Django

2009-06-18 Thread Rick
Sorry, I forgot to mention the key point about codenode: it provides an interactive web page, which accepts direct Python (or Sage) commands, and includes the ability to render plots, etc. Access to a database could be provided through a Python API. --Rick On Jun 18, 10:13 pm, Rick wrote: >

Re: Scientific Data Frontend with Django

2009-06-18 Thread Rick
Hi, Have you looked at codenode (formerly known as knoboo)? This is a distributed application with a Django frontend, and backends that can run on a variety of platforms, including Google App Engine, or even locally. --Rick [1] http://codenode.org/ On Jun 18, 1:28 pm, jordan wrote: > I

Can't find templates (?) when deploying with Apache and mod_wsgi

2009-06-03 Thread Rick W
locations. I'd appreciate any ideas. Thanks, Rick --~--~-~--~~~---~--~~ 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: Split models.py to smaller parts.

2009-05-03 Thread Rick Wagner
ts the Python classes it finds in an application, I'll try to write up an internally consistent addition to the docs. --Rick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: Is Django the Right Choice?

2009-04-24 Thread Rick Wagner
ion). And Django doesn't support XML validation against a schema, for that a separate package (hint: minixsv [1] is a good way to start) would be needed. --Rick > > Although I agree with the others, I'm not sure what exactly your app > is trying to be. > > John C>

Re: Is Django the Right Choice?

2009-04-24 Thread Rick Wagner
ut I found that using the models required a bit of work (my client needs to set up the database in memory each time). You can ask for more details if you decide to go with Django. Finally, ask yourself what features of Django you're going to be using. If it's just the URL dispatching

Re: Split models.py to smaller parts.

2009-04-20 Thread Rick Wagner
' tables. Here's what I see: rpwagner$ ./manage.py validate 0 errors found rpwagner$ ./manage.py sql myapp BEGIN; CREATE TABLE "myapp_modelone" ( "id" integer NOT NULL PRIMARY KEY ) ; CREATE TABLE "myapp_modeltwo" ( "id" integer NOT NULL PR

Re: Sending large, generated files

2009-04-15 Thread Rick Wagner
ike = None self.tar_args = tar_args self.blksize = blksize def __getitem__(self,key): if not self.filelike: self.filelike = get_some_big_tarball(self.tar_args) data = self.filelike.read(self.blksize) if da

Accessing new_object when processing formsets in Admin

2009-02-14 Thread Rick Kitts
ral ways of doing this but I'm not sure what's the best. It appears that the easiest is to override save_form() and do stuff with the return value there. Is that reasonable or is there a better way? Apologies in advance if this isn't clear. ---Rick --~--~-~--~~--

Re: shooting blanks

2008-12-26 Thread Rick Dooling
Duh! Never mind. Sorry for the trouble. Simple Python goof. >{% for quotes in object_list %} > {{ table1.source2 }} Should be {{ quotes.source2 }} Sorry for the intrusion. RD On Dec 26, 10:43 am, Rick Dooling wrote: > I'm trying to use Django to manage an ex

shooting blanks

2008-12-26 Thread Rick Dooling
I'm trying to use Django to manage an existing sqlite3 database of quotations. I used inspectdb to generate the models. Everything works fine, until I attempted my first generic view and first template. Everything executes according to plan, but I get no data outputted into the fields using obj

Re: no module named _sqlite3 on Mac OS X

2008-12-26 Thread Rick Dooling
That did it! Thanks. I also needed zlib, I think? Rick On Dec 25, 1:15 pm, Jarek Zgoda wrote: > Wiadomość napisana w dniu 2008-12-25, o godz. 13:50, przez Rick Dooling: > > > django.core.exceptions.ImproperlyConfigured: Error loading sqlite3 > > module: No module named

no module named _sqlite3 on Mac OS X

2008-12-25 Thread Rick Dooling
Posted in developers by mistake. Sorry. I installed django with svn on Mac OS X. Python 2.5 I installed sometime ago using macports. I have linked django trunk to Python 2.5 and can create projects etc. Using Holovaty and Kaplan-Moss book, when I get to configuring the database in settings and

Re: Newb testing question

2008-11-04 Thread Rick Kitts
y calling the field's clean method directly is not the right > approach -- this method is intended to be called by Django as part > of the overall form cleaning. Therefore to ensure that the > environment/args/etc is set up for it as it will be when your code > actually run

Re: Newb testing question

2008-11-04 Thread Rick Kitts
view, I would love to hear what's better. Understanding code is easy(ish), philosophy is hard. Thanks for the pointer to the errorlist. Apologies if this makes no sense at all. I am not, again, a python/ django person. ---Rick On Nov 4, 2008, at 10:32 AM, Karen Tracey wrote: > On

Re: Newb testing question

2008-11-04 Thread Rick
Give a man a fish... Right, so I see now what's going on. Is this the right place to argue about how this works? ---Rick On Nov 4, 8:46 am, Rick Kitts <[EMAIL PROTECTED]> wrote: > Thanks, it does but this is a bad test methodology. is_valid()   > verifies the entire form an

Re: Newb testing question

2008-11-04 Thread Rick Kitts
_data established? It appears transient since if I call the clean_xxx() method after calling is_valid() then I still get the attriberr. ---Rick On Nov 4, 2008, at 5:10 AM, Dan Fairs wrote: > >> Running the test causes a splash of barf that says: >> >> AttributeError: &#

Newb testing question

2008-11-03 Thread Rick Kitts
va land for a long time so I'm suspecting I might be philosophically wrong about how to test this stuff, especially since I can't (easily) find any mention of this sort of thing on the web. Any help much appreciated. TIA, ---Rick --~--~-~--~~~---~--

Re: anyone have luck with http://code.google.com/p/django-pyodbc/

2008-01-08 Thread rick
oh man I didn't even consider that, kinda makes me wonder if anyone has ever run the code ! thanks, I'll rename and try again. On Jan 8, 3:24 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > Python module names cannot include hyphens, so > 'django-pyodbc.db.mssql' is not a valid Python module na

anyone have luck with http://code.google.com/p/django-pyodbc/

2008-01-08 Thread rick
ql', 'mysql_old', 'oracle', 'postgresql', 'postgresql_psycopg2', 'sqlite3' Has anyone successfully installed and run this backend ? I am running on WinXP against an SQL2000 db. Thanks, Rick --~--~-~--~~~---~--~~ You received this

Re: Another question about the tutorial

2007-12-01 Thread Rick Dooling
.com/en/beta/ Rick --~--~-~--~~~---~--~~ 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, send email to [EMA

Re: Automated deployment

2007-03-30 Thread Rick van Hattem
On Mar 30, 8:26 am, "IvanK" <[EMAIL PROTECTED]> wrote: > Now I come from the rails camp (obviously deserting :)) and I've been > wondering does Django has anything like capistrano for automated > deployment, cause it's really easy with rails to just write "rake > deploy" and have your production b

How to prepopulate a slug field with a foreign key?

2007-03-29 Thread Rick van Hattem
I have just written a model to extend the user model a bit and now I'd like to add a slug field for the username, however, I can't get the slug field to prepopulate from the user foreign key. A simplified version of the model would be this: from django.db import models from django.contrib.auth.m

Re: going crazy: foreignkey-reverse-lookup: tests work,my code fails

2006-06-14 Thread Rick
bject' object has no attribute 'column' Any idea of what's wrong? Thanks, Rick <<<< Model >>>>> class RateSet(models.Model): description = models.TextField(maxlength=128) class Continent(models.Model): id = models.TextField(maxl

Re: Django + fastCGI + bluehost

2006-05-07 Thread Rick
Thanks, It turns out I had the mod_rewrite rules wrong. I've also gotten rid of my python error. How did you get svn working? Rick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gr

Re: Django + fastCGI + bluehost

2006-05-05 Thread Rick
on it (hopefully soon). Rick --~--~-~--~~~---~--~~ 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, send

Re: Django + fastCGI + bluehost

2006-05-03 Thread Rick
cal build of postgresql from postgresql-7.4.8.tar.gz (the same version that BlueHost is running). So now "django-admin.py init" works, but django.fcgi doesn't. Can you shed any light on this? Thanks, Rick James wrote: > Carlos, > > I have django running on my bluehost acc