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
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
> >
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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() #
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
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:
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)
>
>
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
=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
>
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
)
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
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
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
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)
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 =
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
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:
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,
> >
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,
> >
> 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)
>
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,
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,
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
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
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
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
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
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
>
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:
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
]> 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,
>
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
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/
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
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
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:
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
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
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
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:
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
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,
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 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
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
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
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
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
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
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.
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
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
101 - 166 of 166 matches
Mail list logo