2009/12/1 Dave :
> Hi all,
>
> I created a django project and when I try to start the server I get
> this:
>
> Traceback (most recent call last):
> File "manage.py", line 2, in
> from django.core.management import execute_manager
> ImportError: No module named django.core.management
>
> I did
On Dec 1, 11:23 pm, James Dekker wrote:
> My problem, however, is that I can't seem to figure out how to install the
> MySQLdb package for Python / Django?
>
> Downloaded the tar.gz from:
>
> http://sourceforge.net/projects/mysql-python/
The main 'Download Now' link from this page for some reas
2009/12/2 Continuation :
> I use USStateField() from localflavor in one of my models:
>
> class MyClass(models.Model):
> state = USStateField(blank=True)
>
> Then I made a form from that class:
>
> class MyClassForm(forms.ModelForm):
> class Meta:
> model = MyClass
>
> When I displa
On Dec 2, 4:53 pm, neridaj wrote:
> I have a few novice user questions:
>
> 1. If I installed apache2 with prefork do I need to uninstall in order
> to change to worker?
Uninstall what? Apache or mod_wsgi?
Also, what you need to do really depends on how you installed both,
whether from source
Hi, I'm am getting MySQL error 1406 while running syncdb. (See link
http://pastebin.org/59605)
This happens after I create the superuser.
The error says _mysql_exceptions.DataError: (1406, "Data too long for
column 'name' at row 1")
I am not doing any pre-population of data. So I checked the tab
Wiadomość napisana w dniu 2009-12-02, o godz. 11:30, przez chefsmart:
> Hi, I'm am getting MySQL error 1406 while running syncdb. (See link
> http://pastebin.org/59605)
>
> This happens after I create the superuser.
>
> The error says _mysql_exceptions.DataError: (1406, "Data too long for
> column
Daniel,
Under the Files tab, the only ones that are available are for Linux
not OS X Snow Leopard...
-James
On Wed, Dec 2, 2009 at 1:37 AM, Daniel Roseman wrote:
> On Dec 1, 11:23 pm, James Dekker wrote:
>
>> My problem, however, is that I can't seem to figure out how to install the
>> MySQLd
Hello everyone,
A small announcement about mod_auth_django. A small Apache module which let you
authenticate Apache on the Django database.
This module is intended for Apache instances not running on the Django server,
but with access to the Django database. It is a small modification over
mod
Hello All!
I am trying to have my users post multiple books via
Inlineformset_factory. Basically, I am unable to do that
automatically via the following code without having them select their
name. I get an error saying that 'User has no attribute 'get''. Any
help is much appreciated. Ken
model
On Dec 2, 12:18 pm, James Dekker wrote:
> Daniel,
>
> Under the Files tab, the only ones that are available are for Linux
> not OS X Snow Leopard...
>
> -James
No, they're not 'for' anything. They're source code, which you compile
on your platform.
Here's the link to the page:
http://sourceforge
James,
With Snow Leo and preinstalled MySQL5 the package I'm using is here.
http://sourceforge.net/projects/mysql-python/files/
MySQL-python-1.2.3c1.tar.gz
Direct Link:
http://sourceforge.net/projects/mysql-python/files/mysql-python-test/1.2.3c1/MySQL-python-1.2.3c1.tar.gz/download
IMHO, source
Greetings,
We have an application for our school online, just recently the
university controller and business office finally gave us clearance to
accept our application fee online, and they setup an account with
authorize.net.
I'm trying to integrate the payment within our Application app, I was
To sum up (because I've been helping him off list too): It looks like
he had old versions of setuptools and XCode (from OS X 10.4, running
10.6). I think once XCode gets upgraded, he should be OK... assuming
MySQL is actually installed...
As for ZMySQLDA: SourceForge features the most release of a
request.user will give you the User object from the
django.contrib.auth.models, but Authors has no relation.
If you slightly modify your Book model to make authors relate to the
above module, you can eliminate the Authors Model and the "user" of
you Book model.
class Book(models.Model):
Hi Ian,
I do have NVARCHAR2 columns and the NLS_NCHAR_CHARACTERSET is
AL16UTF16 in both schemas.
When trying to decode and encode according to your instruction I get:
UnicodeEncodeError: 'latin-1' codec can't encode characters in
position 4171134-4176189: ordinal not in range(256)
When looking
Hi,
I try to get user authentication working. I followed the advice on
http://docs.djangoproject.com/en/dev//topics/auth/#django.contrib.auth.decorators.login_required
to use the login_required decorator. I also get forwarded to
http://bbc:8000/accounts/login/?next=/blabla
url.py for this read
I'm very interested in this as well. I wrote almost all the forms and
logic to do what this module already does :/
I should lrn2RTFM! but that's been an uphill battle for many ppl ;)
On Dec 2, 2009, at 8:48 AM, Andreas Kuntzagk wrote:
> Hi,
>
> I try to get user authentication working. I follo
Bruce has been working to split out the payments from Satchmo into a
standalone app called django-bursar -
http://bitbucket.org/bkroeze/django-bursar/overview/
Check that out and see if it meets your needs.
I've also heard about this library but have not used it -
http://www.adroll.com/labs
-Chr
hi,
im trying to create a form based on 2 models where model B will be a
inlineformset related to model A.
how can i tell the formset forms (model B) that the related instance is
the just created instance based on model A?
lets say i want to create the author and assign him many books in one shot
Hi guys,
I have some strange behaviour in my interactive python shell, when
trying to browse Django modules...
Example:
>>> import django
>>> dir(django.core)
AttributeError: 'module' object has no attribute 'core'
>>> import django.core
>>> dir(django.core)
['__builtins__', '__doc__', '__file_
How about trying to look at whats available for django... mine says this
>>> import django
>>> dir(django)
['VERSION', '__builtins__', '__doc__', '__file__', '__name__',
'__package__', '__path__', 'conf', 'contrib', 'core', 'db',
'dispatch', 'forms', 'get_version', 'http', 'middleware', 'sho
import a
does not automatically import modules and sub packages of package a. It takes
special action in a's __init__.py to make this happen as it does for
os.path when
you import os.
I assume that you're doing this directly in python, since in the manage.py shell
other stuff has already caused
On Wed, 2 Dec 2009 11:19:41 -0500
Frank DiRocco wrote:
> How about trying to look at whats available for django... mine says
> this
>
> >>> import django
> >>> dir(django)
> ['VERSION', '__builtins__', '__doc__', '__file__', '__name__',
> '__package__', '__path__', 'conf', 'contrib', 'core',
Hello Kenny,
As Bill mentioned in this threads parallel thread, you are prolly just
entring the python shell like thiis
$ python
Instead try this from you projects directory (django_site\mysite)
$ python manage.py shell
As bill mentioned all kindsa magical cool stuff happens...
fdiro...@4b0x
On Wed, 2 Dec 2009 11:36:48 -0500
Bill Freeman wrote:
> import a
>
> does not automatically import modules and sub packages of package a.
> It takes special action in a's __init__.py to make this happen as it
> does for os.path when
> you import os.
>
> I assume that you're doing this directly
Hi,
I've installed module - django-watermark - using easy_install
added watermarker to INSTALLED_APPS in settings.py
then i run python manage.py validate - it shows 0 errors
then python manage.py syncdb - database table was created without
errors
then i've checked if everytning is fine with wate
hi,
I'm using jQuery to send data to a view with is supposed to return
some Django objects (instances of a Restaurant model). Here's what I
do
1- some javascript detect the user's location in the client side
2- the location is sent to a view which select some instances of my
Restaurant model
3- th
On Wed, Dec 2, 2009 at 1:36 PM, jul wrote:
> How can I return these objects to the javascript in my template?
if you're using jQuery's elm.load(url) function, you have to return an
HTML fragment to replace the one already in the browser; so use a
template that renders just this fragment.
if you
I'm using jQuery post:
$.post("/getRestaurant/", location,
function(data) {
/* stuff */
});
In my view, how do I convert my Restaurant array to json?
Thanks for your reply!
On Dec 2, 7:52 pm, Javier Guerra wrote:
> On Wed, Dec 2, 2009 at 1:36 PM, jul
I'm not so sure that a django question as much as it is a Python
question...
http://docs.python.org/library/json.html
On Dec 2, 2009, at 2:01 PM, jul wrote:
> I'm using jQuery post:
>
> $.post("/getRestaurant/", location,
> function(data) {
> /* stuff */
> });
>
ok I've just found it:
from django.core import serializers
data = serializers.serialize('json', Restaurant.objects.all())
On Dec 2, 8:26 pm, Frank DiRocco wrote:
> I'm not so sure that a django question as much as it is a Python
> question...
>
> http://docs.python.org/library/json.html
>
> On
Environment:
Request Method: GET
Request URL: http://shellwing251.atdesk.com/
Django Version: 1.0.2 final
Python Version: 2.4.2
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.admin',
'portal.utils',
'portal.corp_act']
I've installed application djangodblog, it's working, it's logging
everything into db - but it's not showing in the admin panel ... - any
idea how to fix thax ?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
On Thu, Nov 26, 2009 at 10:22 PM, Nick Arnett wrote:
> What you need is called data normalization - fitting data to a desired scale
> - in statistics and analysis.
>
> Here's a general page about normalization:
>
> http://www.qsarworld.com/qsar-statistics-normalization.php
>
> I'd imagine that th
Hello,
by following this guide:
http://docs.djangoproject.com/en/dev/topics/auth/#storing-additional-information-about-users
I made a model and added some information to every user. What do I
have to do, to show these additional fields in the admin/user
interface?
Greetings,
--
Kai Timmer | http:
Hi,
I'm working on porting a legacy site (addons.mozilla.org) where all
urls begin with /locale/app/:
e.g.
https://addons.mozilla.org/en-US/firefox/
https://addons.mozilla.org/ja/firefox/addon/5890
https://addons.mozilla.org/en-US/thunderbird
and in some cases, the application is not needed:
h
> I tried copying /django/contrib/auth/tests/templates/ to
> /django/contrib/auth/ but this gives me a form with only two fields and
> no submit button ...
The form you are getting sounds like the right one.
You'll get a username field and a password field, but you'll have to
provide your own
On Dec 2, 2:17 pm, "dr.NO" wrote:
> I've installed application djangodblog, it's working, it's logging
> everything into db - but it's not showing in the admin panel ... - any
> idea how to fix thax ?
Did you follow the steps outlined in the doc?
http://docs.djangoproject.com/en/dev/ref/contrib/a
You'll have to "activate" the model like any other in order for it to
show up on the Admin site.
Have a look here:
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#overview
On Dec 2, 3:32 pm, Kai Timmer wrote:
> Hello,
> by following this
> guide:http://docs.djangoproject.com/en/dev/to
Does your urls.py contain an entry for compliance_index?
On Dec 2, 2:05 pm, Saravanan wrote:
> Environment:
>
> Request Method: GET
> Request URL:http://shellwing251.atdesk.com/
> Django Version: 1.0.2 final
> Python Version: 2.4.2
> Installed Applications:
> ['django.contrib.auth',
> 'django.co
Hi,
I am having difficulties with listing this type of data. Scenario is
as follows:
1) user1 add's a friend called user2
2) user2 confirms that user1 is his friend
what should happen is user2 and user1 see's each others name in their
friends list. What's happening now is I am able to add user2 t
Hi,
I have a site where you can create news items that can have attached files.
I'm using TabularInline so the the admin interface shows attached files in
the same view where you create the news items.
When I create a new news item and attach files it gives no errors, but the
file isn't actually
Please disregard this message. It was a dumb mistake on my part and I found
it.
On Wed, Dec 2, 2009 at 16:08, Marcos Marín wrote:
> Hi,
>
> I have a site where you can create news items that can have attached files.
> I'm using TabularInline so the the admin interface shows attached files in
> t
Couple things:
1) Your query is not working because if user1 added user2, then you
should be looking at from_friend not to_friend.
2) You haven't posted the code where you're creating friendships but
I'm assuming you are not creating symmetrical friendships there. That
is, if user1 adds user2, yo
So I successfully used this method to add initial values using
parse_params as I was dealing with step 0. However, now the client
wants the form order changed so that what was step 0 is now step 2. I
tried using process_step in the exact same way as parse_params, but
the values are not filled in. I
On Wed, Dec 2, 2009 at 2:04 PM, Jeffrey Taggarty wrote:
> Hi,
> I am having difficulties with listing this type of data. Scenario is
> as follows:
>
> 1) user1 add's a friend called user2
> 2) user2 confirms that user1 is his friend
>
> what should happen is user2 and user1 see's each others name
Ok, so I'm a little embarrassed as usual. basically I was checking for
a step without defining it. I assumed I could just use the step that
is passed but that didn't seem to work for the if statement. So I just
eliminated the if statement and all is well. Not perfect, but I can at
least move on.
O
I am writing my own custom authentication for AD/ldap and I am trying
to authenticate the user without saving the user in the Django User
table. I also don't want the user to have to log in every time they
want to view something. Is there any way to not save the user in the
Django User table and ke
I have a website with about 90 users that I'm trying to import into
Django. Right now, the users have a password with a salt and a hash,
so I tried (with a sample user) to format the password how Django
likes them. I did sha1$salt$hash and I wasn't able to log into admin
with that user (I made that
Hi guys, thanks for responding. I didn't want to have to create 2
entries in the database for a friendship because of the obvious
integrity issues such as friendship deleting and friendship
relationships to files etc seems like a lot of unnecessary
duplication. I didn't see that symmetrical m2m
bfrederi wrote:
> I am writing my own custom authentication for AD/ldap and I am trying
> to authenticate the user without saving the user in the Django User
> table. I also don't want the user to have to log in every time they
> want to view something. Is there any way to not save the user in the
Exactly. So people need to be aware of the varchar limits of django_
tables and also the contrib.auth tables.
On Dec 2, 5:11 pm, Jarek Zgoda wrote:
> Wiadomo¶æ napisana w dniu 2009-12-02, o godz. 11:30, przez chefsmart:
>
>
>
> > Hi, I'm am getting MySQL error 1406 while running syncdb. (See link
I have been using django.contrib.auth for some time now. I have been
creating users and assigning them to groups successfully.
I do something like this: -
user = User.objects.create_user
(username=form.cleaned_data['username'],
password=form.cleaned_data['password'],
Hi,
I've created a custom user model in my application by subclassing
django.contrib.auth.models.User. This user model is working, but there
are a couple of problems I have with it.
1) The change password link in the admin site doesn't work?
2) The default password box on the add/edit page for a
On Wed, Dec 2, 2009 at 6:08 PM, Jeffrey Taggarty wrote:
> Hi guys, thanks for responding. I didn't want to have to create 2
> entries in the database for a friendship because of the obvious
> integrity issues such as friendship deleting and friendship
> relationships to files etc seems like a
def home (request):
if (request.user.is_authenticated()):
artifacts = Artifact.objects.filter
(member__exact=request.user.profile.id)
...
else:
...
In this case, the user is authenticated but the predicate is failing
as expected because user.profile is NULL. The tr
I think you've kind of missed my point as there's not a view that can render
any object - but rather the name of the view is in the url.
This is the url conf for a typical rails app.
map.connect '', :controller => "public"
# Install the default route as the lowest priority.
map.con
57 matches
Mail list logo