Re: New User - Writing your first Django app part 1 crashed

2010-04-12 Thread Jeremy Dunck
On Sat, Mar 27, 2010 at 10:40 PM, Paul Harouff wrote: > On Sat, Mar 27, 2010 at 2:45 AM, Thierry Chich > wrote: >> Are you sure that the postgres driver of your jython is installed ? >> > > Yes. But I don't believe Jython is seeing it. > > I might

Re: Newbie: New user creation with forms

2010-04-07 Thread Nicola Noonan
yes i followed that tutorial and can't even get that one working! On Wed, Apr 7, 2010 at 12:31 PM, Daniel Roseman wrote: > On Apr 7, 12:13 pm, Nicola Noonan wrote: > > I want to create a user with a form and i want that user to be able to > >

Re: Newbie: New user creation with forms

2010-04-07 Thread Daniel Roseman
On Apr 7, 12:13 pm, Nicola Noonan wrote: > I want to create a user with a form and i want that user to be able to > submit data, see i'm building a website and it's a gossip site, i need to > let other users log on and insert data such as gossip, news, articles. Im > not

Re: Newbie: New user creation with forms

2010-04-07 Thread Nicola Noonan
I want to create a user with a form and i want that user to be able to submit data, see i'm building a website and it's a gossip site, i need to let other users log on and insert data such as gossip, news, articles. Im not sure where to begin, i have a rough idea about the forms but its actually

Re: Newbie: New user creation with forms

2010-04-06 Thread Wiiboy
What exactly do you mean by, "Create a user and allow that user to submit data such as messages"? -- 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

Newbie: New user creation with forms

2010-04-06 Thread NicMAN
Hi all i'm a beginner at django and was wondering if any one can help me by being able to create a user and to allow that user to submit data such as messages onto my website! I'm struggling with learning the hard stuff in django. Thanks in advance -- You received this message because you are

Re: New User - Writing your first Django app part 1 crashed

2010-03-27 Thread Paul Harouff
On Sat, Mar 27, 2010 at 2:45 AM, Thierry Chich wrote: > Are you sure that the postgres driver of your jython is installed ? > Yes. But I don't believe Jython is seeing it. I might have to switch to python. I was hoping to use jython so the application would be easier to

Re: New User - Writing your first Django app part 1 crashed

2010-03-27 Thread Thierry Chich
Are you sure that the postgres driver of your jython is installed ? Le 27 mars 2010 à 01:52, Paul Harouff a écrit : On Fri, Mar 26, 2010 at 6:26 PM, Karen Tracey wrote: On Fri, Mar 26, 2010 at 5:58 PM, Paul Harouff wrote: I

Re: New User - Writing your first Django app part 1 crashed

2010-03-26 Thread Karen Tracey
On Fri, Mar 26, 2010 at 8:52 PM, Paul Harouff wrote: [snip] >connection = zxJDBC.connect(self.jdbc_url(), > zxJDBC.DatabaseError: driver [org.postgresql.Driver] not found > > > All of my searches say the solution is to use the --verify flag with > jython. But, the

Re: New User - Writing your first Django app part 1 crashed

2010-03-26 Thread Paul Harouff
On Fri, Mar 26, 2010 at 6:26 PM, Karen Tracey wrote: > On Fri, Mar 26, 2010 at 5:58 PM, Paul Harouff wrote: >> >> I uninstalled Django development trunk and installed Django-1.1.1. Now >> when I run "jython manage.py runserver" I get "Error: No module

Re: New User - Writing your first Django app part 1 crashed

2010-03-26 Thread Karen Tracey
On Fri, Mar 26, 2010 at 5:58 PM, Paul Harouff wrote: > I uninstalled Django development trunk and installed Django-1.1.1. Now > when I run "jython manage.py runserver" I get "Error: No module named > messages" > > I've no idea bout your earlier problem but this one sounds

Re: New User - Writing your first Django app part 1 crashed

2010-03-26 Thread Paul Harouff
On Fri, Mar 26, 2010 at 2:17 PM, Beartenor1 wrote: > I have a openSUSE linux server. > > Created folder /CSDB. > Dropped copy of Sun jdk6u18 in /CSDB/java/jdk6u18. > Installed copy of Jython in /CSDB/jython > Installed easy_install > Installed distribute > Installed virtualenv

New User - Writing your first Django app part 1 crashed

2010-03-26 Thread Beartenor1
I have a openSUSE linux server. Created folder /CSDB. Dropped copy of Sun jdk6u18 in /CSDB/java/jdk6u18. Installed copy of Jython in /CSDB/jython Installed easy_install Installed distribute Installed virtualenv Ran virtualenv --relocatable /CSDB/jython Dropped copy of Apache tomcat6 in

Re: New user login problem

2009-11-14 Thread Zeynel
quest, the ModelAdmin.queryset() and ModelAdmin.has_change_permission() can be used to control the visibility and editability of objects in the admin. Is there anyone who is familiar with this process? On Nov 14, 9:38 am, Zeynel <azeyn...@gmail.com> wrote: > Hello, > > I am creating a new user successfully bu

New user login problem

2009-11-14 Thread Zeynel
Hello, I am creating a new user successfully but I cannot login with that new user. I make sure that username and pw (case sensitive) are correct. Is there more to creating a new user? -- You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Triggen after insert on auth_user, crash the add new user with this error: InternalError at /operators/ current transaction is aborted, commands ignored until end of transaction block

2009-11-11 Thread Михаил Лукин
Why don't you use Django signals [1] for this? [1] http://docs.djangoproject.com/en/dev/topics/signals/ 2009/11/11 NMarcu <marcu.nico...@gmail.com> > > Hello all, > > I have a section for adding new user, on auth_user table (default > django auth method), and work just fi

Triggen after insert on auth_user, crash the add new user with this error: InternalError at /operators/ current transaction is aborted, commands ignored until end of transaction block

2009-11-11 Thread NMarcu
Hello all, I have a section for adding new user, on auth_user table (default django auth method), and work just fine. I added a trigger on that event, to add something in a new table and my app crashed. I got this error: InternalError at /operators/ current transaction is aborted, commands

Re: Foreign Key Admin UI Error (from a new user)

2009-10-27 Thread David Nolen
Ahh I see now I needed to define ArtBaseModel as an abstract base class. On Oct 24, 7:06 pm, David Nolen wrote: > Thanks for the reply. The base model just looks like this: > > class ArtBaseModel(models.Model): >     created = models.DateTimeField() #

Re: Foreign Key Admin UI Error (from a new user)

2009-10-27 Thread David Nolen
So the issue seems to stem from the fact that both Work and Title inherit from the same model. Is this a known issue? Is there something I can do to ArtBaseModel to make this work? I would like all my models to have created/modified. Thanks again, David On Oct 24, 7:56 am, Tom Evans

Re: Foreign Key Admin UI Error (from a new user)

2009-10-24 Thread David Nolen
Thanks for the reply. The base model just looks like this: class ArtBaseModel(models.Model): created = models.DateTimeField() # models.DateTimeField(editable=False) modified = models.DateTimeField() # models.DateTimeField(editable=False) def save(self): if not self.id:

Re: Foreign Key Admin UI Error (from a new user)

2009-10-24 Thread Tom Evans
On Fri, 2009-10-23 at 13:22 -0700, David Nolen wrote: > My admin looks something like the following- > > class TitleInline(admin.TabularInline): > model = Title > extra = 1 > > class WorkAdmin(admin.ModelAdmin): > inlines = [TitleInline] > admin.site.register(Work, WorkAdmin) > >

Foreign Key Admin UI Error (from a new user)

2009-10-23 Thread David Nolen
My admin looks something like the following- class TitleInline(admin.TabularInline): model = Title extra = 1 class WorkAdmin(admin.ModelAdmin): inlines = [TitleInline] admin.site.register(Work, WorkAdmin) My models look something like this- class Work(ArtBaseModel): def

Re: post_save signal to create the new user profile

2009-09-13 Thread Peter Bengtsson
=True) > > When I create a new employee from django admin interface it creates a > new user for it, but how to manage to create a new blank employee > profile after creating a new user from django admin? > > I tried to use post_save signal for it, but have no idea how to create >

Re: post_save signal to create the new user profile

2009-09-13 Thread Dmitry Gladkov
harField(max_length=32, null=True, blank=True) >     website = models.URLField(null=True, blank=True) >     comments = models.TextField(null=True, blank=True) > > When I create a new employee from django admin interface it creates a > new user for it, but how to manage to create a new bl

post_save signal to create the new user profile

2009-09-13 Thread Dmitry Gladkov
) skype = models.CharField(max_length=32, null=True, blank=True) website = models.URLField(null=True, blank=True) comments = models.TextField(null=True, blank=True) When I create a new employee from django admin interface it creates a new user for it, but how to manage to create a new blank

Re: Create a new user profile

2009-08-04 Thread Steven Nien
Hi, Thank cooteteom and Spajderix! Both of Your code works! Thank you very much! On Aug 4, 6:01 pm, cootetom wrote: > Hi, > > When you create the profile assign request.user to the user, so: > > profile_obj = UserProfile(user = request.user) > > Also in the UserProfile

Re: Create a new user profile

2009-08-04 Thread Spajderix
Hi, you have to create new "User" object, assign values to it and then assign this object to profile_obj. Example: from django.contrib.auth.models import User new_user = User() profile_obj = UserProfile() new_user.username = 'someusername' new_user.password = 'somepassword' new

Re: Create a new user profile

2009-08-04 Thread cootetom
Hi, When you create the profile assign request.user to the user, so: profile_obj = UserProfile(user = request.user) Also in the UserProfile model make sure that the entries that are allowed to be blank are set up to allow that, eg: address = models.CharField(max_length=60, blank = True)

Create a new user profile

2009-08-04 Thread Steven Nien
Hi all, I have built a model like this: class UserProfile(models.Model): address = models.CharField(max_length=60) birthday = models.DateField() user = models.ForeignKey(User) I render the model by the ModelForm: class UserProfileForm(ModelForm): class Meta: model =

Re: Error trying to add a new user in the admin site

2009-06-21 Thread Kevin Audleman
I discovered the problem: I had added settings to my settings.py to print out the variable name if the variable didn't exist. These are the values: TEMPLATE_DEBUG = DEBUG TEMPLATE_STRING_IF_INVALID = '%s' Some of the admin templates make use of variables that don't actually exist. If the value

Error trying to add a new user in the admin site

2009-06-08 Thread Kevin Audleman
I go into the admin section of my site, click on Users, then on the 'Add User' button. It takes me to a screen that asks me to put in a username and password and click 'Save'. At this point I get an error: ValueError at /admin/auth/user/add/form_url invalid literal for int() with base 10:

Re: How to create new User with Profile in elegant way

2009-03-10 Thread Ross Dakin
On Mar 9, 1:06 am, myst3rious wrote: > > If you're setting all these things in the User object, then reverse the > > logic slightly: > > >         new_user = User.objects.create(username=username, > >             email=email, > >             is_active=True, > >            

Re: How to create new User with Profile in elegant way

2009-03-09 Thread Malcolm Tredinnick
On Mon, 2009-03-09 at 01:06 -0700, myst3rious wrote: > > > If you're setting all these things in the User object, then reverse the > > logic slightly: > > > > new_user = User.objects.create(username=username, > > email=email, > > is_active=True, > >

Re: How to create new User with Profile in elegant way

2009-03-09 Thread myst3rious
> If you're setting all these things in the User object, then reverse the > logic slightly: > >         new_user = User.objects.create(username=username, >             email=email, >             is_active=True, >             first_name=firstname, >             last_name=lastname) >        

Re: How to create new User with Profile in elegant way

2009-03-09 Thread Malcolm Tredinnick
On Sun, 2009-03-08 at 23:30 -0700, myst3rious wrote: > Hi, > Working on a Django app, which requires profile for each subscribing > user, I created a Profile model: > class Profile(models.model): > user = models.ForeignKey(User, unique=True) > middlename = models.CharField(max_length=32,

How to create new User with Profile in elegant way

2009-03-09 Thread myst3rious
Hi, Working on a Django app, which requires profile for each subscribing user, I created a Profile model: class Profile(models.model): user = models.ForeignKey(User, unique=True) middlename = models.CharField(max_length=32, blank=True) gender = models.CharField(max_length=1,

Re: How can I report a new user?

2008-12-11 Thread David Reynolds
On 6 Dec 2008, at 19:59, Jeff FW wrote: > Do you mean when a user is added via the admin interface, or when a > user registers on the site through a view you have set up? If it's > through a view you've made, then just add the call to send_mail() in > the view. For the admin site, you'll want

Re: How can I report a new user?

2008-12-06 Thread Patricio Palma
On Sat, Dec 6, 2008 at 4:59 PM, Jeff FW <[EMAIL PROTECTED]> wrote: > > Do you mean when a user is added via the admin interface, or when a > user registers on the site through a view you have set up? If it's > through a view you've made, then just add the call to send_mail() in > the view. For

Re: How can I report a new user?

2008-12-06 Thread Jeff FW
s = models.CharField(max_length=40) >     email = models.EmailField("e-mail") >     phone = models.IntegerField(_("phone number")) >     rol = models.IntegerField(_("company number")) > > I need to know when a new user is added to the system, and send a

How can I report a new user?

2008-12-06 Thread Patricio Palma
t;phone number")) rol = models.IntegerField(_("company number")) I need to know when a new user is added to the system, and send a e- mail report, I know how send a mail. but I don't know where or when do it --~--~-~--~~~---~--~~ You received

Re: new user needs some advice setting up a model...

2008-09-25 Thread paul
this works well when i'm editing an individual shot. however, i get a error when editing shots inline. i've had a good look around - and this was a known problem. does anyone know if this has been fixed? another question: right now, i'm using the admin UI to input data. right now, my app is

Re: new user needs some advice setting up a model...

2008-09-24 Thread paul
ah - even easier than i thought it might me. many thanks for taking your time to point me in the right direction. very very much appreciated! -p On Sep 24, 9:40 pm, "Alexander Pugachev" <[EMAIL PROTECTED]> wrote: > You can force database to watch after columns to be unique by one or in >

Re: new user needs some advice setting up a model...

2008-09-24 Thread Alexander Pugachev
You can force database to watch after columns to be unique by one or in combinations. Django admin interface also can watch after this restrictions. How to make a model to have few attributes unique together is described here:

new user needs some advice setting up a model...

2008-09-24 Thread paul
hi all, i've thrown myself into developing an animation pipeline using django. i'm new to both python and django - but have in the (distant) past written thousands of lines of c,c++ & perl. so, please be gentle - but maybe not too gentle with me. this first question is quite simple. i have a

Re: New user having trouble with First View

2007-12-17 Thread newDjangoer
]> wrote: > newDjangoer wrote: > > Hello, > > > I am a new user to Django and developing apps at that. I ran the > > server successfully . Once I created the "First View" tutorial > > (datetime page17) in the book and changed the settings.py and urls.py, >

Re: New user having trouble with First View

2007-12-17 Thread Christian Joergensen
newDjangoer wrote: > Hello, > > I am a new user to Django and developing apps at that. I ran the > server successfully . Once I created the "First View" tutorial > (datetime page17) in the book and changed the settings.py and urls.py, > I get the followi

New user having trouble with First View

2007-12-17 Thread newDjangoer
Hello, I am a new user to Django and developing apps at that. I ran the server successfully . Once I created the "First View" tutorial (datetime page17) in the book and changed the settings.py and urls.py, I get the following: Request Method: GET Request URL:http://127.0.0.1:8000/

Re: new user vs. logged out user

2007-10-02 Thread James Bennett
On 10/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I want to distinguish requests from people that have never had an > account from folks that just have an expired session. This really isn't possible; once their cookie expires, anything you "knew" about them disappears. You could set

new user vs. logged out user

2007-10-02 Thread [EMAIL PROTECTED]
Hi, I want to distinguish requests from people that have never had an account from folks that just have an expired session. The difference is important in saying "sign in again" vs. "here is what we do, go here to sign up". A wrinkle in this is the test cookie setup where you write a cookie to

Some New User Questions & Suggestions

2007-09-25 Thread staff-gmail
somehow my earlier post got stuck into another thread. As a new user, here are some suggestions & questions: Startup: It is important to note in the documentation that with some distros (ie ubuntu) you need: $ django-admin.py startproject myproject then to create an application:

Re: Login Right After Creating a New User

2007-06-07 Thread [EMAIL PROTECTED]
On Jun 6, 10:04 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > Yes. The 'backend' attribute that is being complained about is an > attribute that is decorated onto the user object by the authenticate() > method (django.contrib.auth.authenticate()). If you call authenticate, > providing

Re: Login Right After Creating a New User

2007-06-06 Thread Russell Keith-Magee
On 6/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi Everyone, > I'm trying out django and it's been really easy getting the auth > library up and running. I hit an issue where I want to login a new > user right after they've registered and take them to their

Login Right After Creating a New User

2007-06-06 Thread [EMAIL PROTECTED]
Hi Everyone, I'm trying out django and it's been really easy getting the auth library up and running. I hit an issue where I want to login a new user right after they've registered and take them to their profile page. I tried calling the auth.login method but I got an error saying

Re: admin complains when adding a new User

2006-09-19 Thread Nara Narasimhan
OK, It is because I had a non-empty string in settings.py forTEMPLATE_STRING_IF_INVALID,namely, TEMPLATE_STRING_IF_INVALID='-TEMPLATE -VARIABLE-IS-MISSING-'Setting to "" # empty string worked around the problem.I see now that there is already a ticket for this:

Re: admin complains when adding a new User

2006-09-19 Thread nara
If I set APPEND_SLASH=False in my settings.py, then I see this POST at the end of my log: [20/Sep/2006 03:28:15] "POST /admin/auth/user/add/-TEMPLATE-VARIABLE-IS-MISSING- HTTP/1.1" 404 4838 Not sure if this gives any further clues. BTW, I svn update everyday, and try things on either the main

Re: admin complains when adding a new User

2006-09-18 Thread Jim Moses
At least you got to admin...;-)I got stuck at logging in...says I'm not set to accept cookies..but I am.If you happened to hit this and know the answer... I'll buy you a beer for it!Jimnara <[EMAIL PROTECTED]> wrote: I must be missing something simple. Just using the admininterface, adding a user,

Re: I'm a new user trying to set up a second app, and I'm getting 404s

2006-09-05 Thread markscottwright
Damn. I figure it out 10 seconds after posting. I needed to add allow_empty=True to the arguments for object_list. Sorry everyone. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

I'm a new user trying to set up a second app, and I'm getting 404s

2006-09-05 Thread markscottwright
I'm trying to add my own app to the site I created when I went though the tutorial. So, I've already got "polls" set up, and I'm trying to set up an app called liontamer. I've done essentially the same thing as the polls site (described below), but when I try to go to the root url

Re: Problems in encryption when creating a new user with Admin

2006-07-11 Thread Vizcayno
Malcom: Many thanks for your time and interest in answering and clarifying my doubts. According to this, it is now a little detail comparing with the general and nice architecture of Django. Very best regards. Vizcayno. --~--~-~--~~~---~--~~ You received this

Re: Problems in encryption when creating a new user with Admin

2006-07-10 Thread Kenneth Gonsalves
On 11-Jul-06, at 7:27 AM, Malcolm Tredinnick wrote: > I could give you the party line about why it is done like this, > but I'm not going to bother. I don't find it to be a particularly > defensible design, since it is an enormous hassle without being > part of > a uniformly strong security

Re: Problems in encryption when creating a new user with Admin

2006-07-10 Thread Malcolm Tredinnick
On Mon, 2006-07-10 at 18:32 -0700, Vizcayno wrote: > When I create a new user in the Admin with all privileges, Django asks > for new user and password; When I type the password I can see what I > write, I think this field should be protected from seeing password. Since it doesn

Problems in encryption when creating a new user with Admin

2006-07-10 Thread Vizcayno
When I create a new user in the Admin with all privileges, Django asks for new user and password; When I type the password I can see what I write, I think this field should be protected from seeing password. After saving the new user I logout Admin, then I try to login with the new user

Re: Basic Django questions from a new user

2006-07-07 Thread Kenneth Gonsalves
On 07-Jul-06, at 9:14 AM, Bob wrote: > I'm going to try to create an app called "content" and see if I can > make a web page that loads some content posts. I'm not sure if > that is > the right track, but will give it a try... it'll work -- regards kg http://lawgon.livejournal.com

Re: Basic Django questions from a new user

2006-07-06 Thread Bob
ok... Figured it out. That was painful, but I'm impressed. As soon as I finish I'm going to write a really basic tutorial on how to do it... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Basic Django questions from a new user

2006-07-06 Thread Kenneth Gonsalves
On 07-Jul-06, at 8:01 AM, Bob wrote: > I hope I am on the right track here. Are there any basic tutorials on > how to get a basic web site online with Django (not just a polls or > small detail of a web site)? i suggest you go through all four lessons of the tutorial - things will become

Basic Django questions from a new user

2006-07-06 Thread Bob
I'm learning Django. I'm just about done with the 4th tutorial, and have printed out the documentation. I'm not a programmer, but know some PHP/MySQL and worked through the first half of a couple of Python books. One thing that I don't understand is how to get a site online. The tutorials for

<    1   2