Hi,
In your opinion what is the best way to share userid with the PHP
application ?
---
On Jun 7, 7:59 am, Dmitry Dulepov wrote:
> Hi!
>
> nameless wrote:
> > Someone has telled me that I could share the user id ( from Django and
> > PHP )
> &
hep :D
On Jun 5, 7:41 pm, nameless wrote:
> I want to add cometchat ( written in PHP ) in my djangoproject and I
> need to
> edit this function to get it work ( a function that return the userid
> of the user logged in ):
>
> function getUserID() {
>
> // I could
s for no
> special reason. Or is there something very special about this PHP
> script that you can't do with 10-200 times less code in your django
> application?
>
> On Sat, Jun 5, 2010 at 5:18 PM, nameless wrote:
>
> > Someone has telled me that I could s
this will make the django cookie valid both forwww.mychat.comand
> chat.mychat.com
>
> On Sat, Jun 5, 2010 at 2:34 PM, nameless wrote:
> > If the chat is in a subdomain ?
>
> >
>
> > On Jun 5, 2:05 pm, Vasil Vangelovski wrote:
> >> It's possi
e-age
>
> You can then find the current user by the sessionid from the django_* tables.
>
> On Sat, Jun 5, 2010 at 1:40 PM, nameless wrote:
>
> > I have a django blog project and a chat in PHP.
>
> > I need to share the id of the user logged in django
> > (
I have a django blog project and a chat in PHP.
I need to share the id of the user logged in django
( request.user.id ) with the chat in PHP.
Is this possible ?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
I have this simple Blog model:
class Blog(models.Model):
title = models.CharField(_('title'), max_length=60, blank=True,
null=True)
body = models.TextField(_('body'))
user = models.ForeignKey(User)
is_public = models.BooleanField(_('is public'), default = True)
When I insert a
May 25, 2010 at 12:20 PM, nameless wrote:
> > Generic field because on my project you can post and comment in Blogs,
> > Gallery pages, Foto pages, video pages, ecc.
> > So I want to use my Post_comment models for post and comment
> > anythings.
> > Is this a wrong solut
n the model.
>
> Regards
> Scott
>
> On May 25, 5:54 am, nameless wrote:
>
>
>
>
>
> > I have created a simple project where everyone can create one or more
> > Blog. I want to use this models for Post and for Comment:
>
> > class Post_comment(mod
I have created a simple project where everyone can create one or more
Blog. I want to use this models for Post and for Comment:
class Post_comment(models.Model):
content_type = models.ForeignKey(ContentType)
object_id = models.PositiveIntegerField(_('object ID'))
content_object = gen
cached if performance is an issue. If you later on modify the saved
> links, just remember to empty the cache.
> On 24 May 04:55, nameless wrote:
>
>
>
>
>
> > mmm 2 textfields for the same information ?
> > Is this a good approach ?
>
> > --
>
>
mmm 2 textfields for the same information ?
Is this a good approach ?
--
On 22 Mag, 20:11, Rolando Espinoza La Fuente
wrote:
> On Fri, May 21, 2010 at 6:12 PM, nameless wrote:
>
> > I have a simple Blog model with a TextField. What is the best way to
> > save link
help please :D
On 22 Mag, 00:12, nameless wrote:
> I have a simple Blog model with a TextField. What is the best way to
> save links in the TextField ?
>
> 1) Saving link in the database in this form:http://www.example.com
> and then using some filter in the template to
I have a simple Blog model with a TextField. What is the best way to
save links in the TextField ?
1) Saving link in the database in this form: http://www.example.com
and then using some filter in the template to trasform it in form:
http://www.example.com>http://www.example.com
2) Saving link
I have:
* created translation strings in the template and in the
application view.
* run this command: django-admin.py makemessages -l it and the
file it/LC_MESSAGES/django.po has been created
* translated strings in the django.po file.
* run this command: django-admin.py compile
Hi at all,
I need to create a high performance comet chat for my college project.
I have found Tornado that is a non-blocking webserver used by
FriendFeed for real-time features:
http://www.tornadoweb.org/
Maybe this is a stupid question but I am very newbie and I want to
know how to use Tornado a
style calls between the servers using XMLRPC or
> something simpler.
> Is there a reason you want to use two different systems?
>
>
>
>
>
> On Fri, Mar 12, 2010 at 7:41 PM, nameless wrote:
> > you right Dylan... maybe is better put erlang code on another
> >
o view).
>
>
>
>
>
> On Fri, Mar 12, 2010 at 1:02 PM, nameless wrote:
> > Hi at all.
> > I need to create a blogging system with Django+Apache+Postgresql and a
> > twitter-like app with Erlang+Yaws+Mnesia.
>
> > How can I execute erlang code through dj
Hi at all.
I need to create a blogging system with Django+Apache+Postgresql and a
twitter-like app with Erlang+Yaws+Mnesia.
How can I execute erlang code through django views ?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this gro
Thank you for tips.
Now I want that when an user upload an image ( through forms ), then
it will be saved in media.example.com.
This is the point that I don't understand :-\
---
On Jan 18, 1:08 am, Malcolm Box wrote:
> On Sat, Jan 16, 2010 at 3:20 PM, nameless wrote:
>
I have a site developed with django at www.example.com
I want that django insert/serve static files ( images, css, js, ect )
in/from media.example.com.
I have edited settings.py:
MEDIA_ROOT = 'http://media.miosito.it'
MEDIA_URL = 'http://media.miosito.it'
ADMIN_MEDIA_PREFIX = 'http://media.m
Sequences are best solution for me but I don't know how to implement
its in django+mysql.
I tought also to use id as username but I don't know how do this :-\
Could you explain me how do pleaseee ?
Thank you
---
On Jan 14, 4:16 pm, Shawn Milochik wrote:
> There are a bunch of wa
I want username field is automatically filled with this value:
username = str(n);
where n is a number of 10 digits ( autoincremented or random ).
.
I tried to add this in save method:
username = str(random.randint(10,99))
but there is a collision problem when n is the same f
username field as random
strings :P
In this case I don't have to create a custom backend.
Is a good idea in your opinion ?
-
On Jan 14, 11:12 am, Alexander Dutton wrote:
> On 14/01/10 09:51, nameless wrote:> I am asking whether is a good solution to
> having 2 fields
I am asking whether is a good solution to having 2 fields with the
same value ( username and email ) because both are required.
Or is there another solution ?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to d
I want a Registration Form with only email + password. I am thinking
to insert automatically email in username field. So, for eash user, I
will have this:
username: exam...@example.com
password: mypassword
email: exam...@example.com
Of course email + password will be used in login process.
I
rematurely optimize.
>
> On Tue, Jan 12, 2010 at 2:25 PM, nameless wrote:
> > My table with 4 milions of rows is queried often by ajax.
> > So I think a performance problems ( I am using also index ).
> > Ok now take a look at the contenttypes :)
>
> >
My table with 4 milions of rows is queried often by ajax.
So I think a performance problems ( I am using also index ).
Ok now take a look at the contenttypes :)
On Jan 12, 8:15 pm, Tim wrote:
> As far as needing to split up the table into other tables, I'm not
> sure. Whats wrong w
Hi at all. I have a project with 2 applications ( books and reader ).
Books application has a table with 4 milions of rows with this fields:
book_title = models.CharField(max_length=40)
book_description = models.CharField(max_length=400)
To avoid to query the database with 4 milions of rows,
I have to upload my django project on shared hosting.
How can I crypt my code ?
I want to hide my code on server.
Thanks :)
--
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 un
Hi at all,
I need a world cities database for registration form.
What is the best and most used ?
thanks ^_^
--
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
> {username:'username',id:4},
> {username:'username2',id:5}
> ]
>
> [urls.py]
> url(r'^/member/search/$', 'path.to.views.ajax_get_users',
> name="myapp_ajax_user_search"),
>
> if you have your widget set up to include th
Hi at all, I am looking for a working simple example on autocomplete
widget for foreign key in Django. I have found many example but I
don't understand and doesn't work.
This is my model:
class profile(models.Model):
user = models.ForeignKey(User, unique=True)
class profileForm(ModelForm):
use
gt; An absolute path is certainly helpful for actually operating on the
> file, but before
> self.thumb = imfile + ".thumbnail.jpg"
> you'll need something like
> imfile, ext = os.path.splitext(self.photo) # NOT .path, so this
> is a relative path, not an absolu
-
> From: "Chris Moffitt"
> Sent: Saturday, January 02, 2010 11:59 PM
> To:
> Subject: Re: Photo + thumbnail
>
> > You'll probably want to use one of Django's thumbnail apps. Here's the one
> > I
> > recommend:
> >
-
> From: "Chris Moffitt"
> Sent: Saturday, January 02, 2010 11:59 PM
> To:
> Subject: Re: Photo + thumbnail
>
> > You'll probably want to use one of Django's thumbnail apps. Here's the one
> > I
> > recommend:
> &
I have reinstalled django and now work ^_^
-
On Jan 3, 5:52 pm, Daniel Roseman wrote:
> On Jan 3, 1:52 pm, nameless wrote:
>
>
>
> > I am using tutorial on django official documentation. But when I point
> > tohttp://127.0.0.1:8000/admin/, I get this error:
&g
I have installed python and then django with setup.py install.
I have only one installation. What do I do ?
please help :-\
---
On Jan 3, 3:02 pm, Ramiro Morales wrote:
> On Sun, Jan 3, 2010 at 10:52 AM, nameless wrote:
> > I am using tutorial on django official documenta
Exception Value:
admin/login.html
Exception Location: /usr/local/lib/python2.6/dist-packages/django/
template/loader.py in find_template_source, line 74
Python Executable: /usr/bin/python
Python Version: 2.6.2
Python Path:['/home/nameless/Django-1.1.1/social', '/usr
apps. Here's the one I
> recommend:http://code.google.com/p/sorl-thumbnail/*
>
> -*Chris
>
> On Sat, Jan 2, 2010 at 9:48 AM, nameless wrote:
> > Hi everyone I have a simple question.
> > This is my model:
>
> > class book(models.Model):
>
Hi everyone I have a simple question.
This is my model:
class book(models.Model):
title = models.CharField(max_length=50)
photo = models.ImageField(upload_to='images/avatar/')
thumb = models.ImageField(upload_to='images/thumb/')
I want in photo original photo and in thumb the same
41 matches
Mail list logo