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
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
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
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
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
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
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)
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
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
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):
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 =
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
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')
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.
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
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
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
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
: 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.
>
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
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
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
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
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
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 =
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
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
;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(
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 "
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
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
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
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,
>>
&
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
7;,'address','student','studentclass.student','access_restrictions','photo')
extra_fields={'Student':{'age':CALLABLE}}
StudentFieldsFormset =
formset_factory(StudentFieldForm,formset=FieldFormSet)
StudentReportFormset =
ne}
> >th {align: right}
> >
> >
> >
> > {% include 'menu.html' %}
> >
> >
> >
> > {{ form.as_table }}
> >
> >
> >
> >
> >
> >
> >
> > On Jan 28,
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
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:
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
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
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
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
> >
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
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
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:
>
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
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
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
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>
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
' 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
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
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
--~--~-~--~~--
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
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
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
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
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
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
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
_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:
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
--~--~-~--~~~---~--
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
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
.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
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
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
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
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
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
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
71 matches
Mail list logo