Re: Authenticate returns None when it should validate... what I am I doing wrong here?

2009-10-21 Thread Social Network in DJango

Just tested it on my deployment environment. It still works there. Why
is it failing on my development machine??

Deployment environment:
Python 2.5.4 (r254:67916, Aug  5 2009, 12:42:40)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.contrib.auth import authenticate
>>> from django.contrib.auth.models import User
>>> user = 
>>> User.objects.create_user('johnlennon','len...@beatles.com','johnpassword')
>>> user.save()
>>> newuser= authenticate(username='johnlennon', password='johnpassword')
>>> print newuser
johnlennon
>>>

On Oct 21, 1:35 pm, Social Network in DJango 
wrote:
> My django program will not log in on one of my development machines,
> yet it works fine in my
> deployment environment. I managed to isolate the bug to the following
> code:
>
> Any help is greatly appreciated.
>
> Jonathan
>
> (Python Shell)>>> from django.contrib.auth import authenticate
> >>> from django.contrib.auth import login
> >>> from django.contrib.auth import logout
> >>> from django.contrib.auth.models import User
>
> >>> user = 
> >>> User.objects.create_user('johnlennon','len...@beatles.com','johnpassword')
> >>> user.save()
> >>> newuser= authenticate(username='johnlennon', password='johnpassword')
> >>> newuser
> >>> print newuser
>
> None
--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Authenticate returns None when it should validate... what I am I doing wrong here?

2009-10-21 Thread Social Network in DJango

My django program will not log in on one of my development machines,
yet it works fine in my
deployment environment. I managed to isolate the bug to the following
code:

Any help is greatly appreciated.

Jonathan

(Python Shell)
>>> from django.contrib.auth import authenticate
>>> from django.contrib.auth import login
>>> from django.contrib.auth import logout
>>> from django.contrib.auth.models import User
>>>
>>> user = 
>>> User.objects.create_user('johnlennon','len...@beatles.com','johnpassword')
>>> user.save()
>>> newuser= authenticate(username='johnlennon', password='johnpassword')
>>> newuser
>>> print newuser
None
--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



HTML works directly in browser, but not in DJango... Why???

2009-05-19 Thread Social Network in DJango

I put the below code to embed an mp3 file in an html page in an html
file and pointed my browser to it.  It works.

I then try
 url(r'^$','django.views.generic.simple.direct_to_template',
{"template": "wimpybutton.html"}, name="home"),

Then, http://127.0.0.1:8080/

I do not see the button. I view page source.  The page source is
identical to the below.

Please let me know how I can see the button and hear the music from
DJango if I already can do so in html.

Thank you in advance,

Jonathan





http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=8,0,0,0" width="35" height="35"
id="wimpybutton288">









--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Uploading music or videos (seeking django package)

2009-04-07 Thread Social Network in DJango

I'd like to upload music and/or photos and/or videos to my website,
with the emphasis on mp3.

Please let me know what BSD license package you can recommend.

Thank you in advance,

Jonathan

--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Click-wrap license (seeking django application)

2009-04-07 Thread Social Network in DJango

I'm interested in activating a click-wrap license, similar to what you
get when you install a new program or package, on a pc or osx.

The core issues I've identified so far:
* Acceptance to move on
* Pagenation for convenient viewing
* A reasonable default formatting for what was a word document
* Handling unusual characters such as " and '
* Minimal changes to the text to be able to update it from word as the
original changes

* Using it at registration or while already using the site

I look forward to you input.

Thank you in advance,

Jonathan

--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---