Hi all
I have a problem I have been struggeling with for a while.
I have two models:
InfoProxy and Permission
A InfoProxy can have several Permissions
class Permission(models.Model):
info_proxy = models.ForeignKey(InfoProxy,
related_name='permissions')
permission_type =
> What I'm doing is to load a model from a template.
> I have in a template something like this:
> {% block menu %}
> {% block rss %}
>
> I want to load "menu" and "rss", but I think that is too much work for
> now, I have no idea how to implement it and I probably won't do it.
> Thank you very
I have sticky bug I can not figure out how to solve.
On the dev server it works fine, but moving to mod_python...
I'm running a query and it throws an exception, but if I reload the
page it works fine.
the model has this structure:
class InfoProxy(models.Model):
info_type =
The current framework only allow for one "profile class" per site.
If you want you can let this class return different profiles
depending on the user.
class mysiteprofile(models.Model)
user = models.ForeignKey(User, unique=True,
related_name='user_profile')
...
...
def
I have been trying to use persistent sessions (cookies) on a mobile
phone and never got it to work.
When I change settings.SESSION_EXPIRE_AT_BROWSER_CLOSE = False cookies
stops to work on the phone.
After digging down I noticed that it's setting max_age that brakes it
on the phone.
When setting
Im having trouble to get 'funky' characters to work with newform posts.
I have read the posts on the subject, and Im not sure if I run into a
bug...
class Guide(models.Model):
about = models.CharField(maxlength=1500)
class EditForm(forms.Form):
about =
A wild guess is that there is something wrong with the data in your
database...
...are you using the same database from the dev server?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post
I have a problem using cookies lasting longer than a session.
When setting SESSION_EXPIRE_AT_BROWSER_CLOSE to True everything works
fine but setting to False NO cookie is set.
Hints in any direction is welcome:-)
Cheers
Sten
--~--~-~--~~~---~--~~
You
Hi
I think you will find your answers here:
http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser
regards
Sten
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
How did you exported the data between linux and xp?
Have you checked that the db table in mysql is set to utf8?
cheers
:-S
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
I'm getting a strange error that I have not been able to sort out.
When moving my project to the production server the below query stops
working. (It works fine on Mac)
I noticed that using CamelCase in fieldnames is an issue when moving
code, but that doesn't seem to be the problem here.
Any
Hi Beau
No, I'm afraid not.
I did not have time to look into it further so it's still an open thing
for me.
Regards
Sten
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
Hi
I'm fiddling around with MySQL fulltext search and run into a problem.
Using the below code works:
match_expr = "MATCH(name) AGAINST (%s IN BOOLEAN MODE)"
qs =
Place.objects.all().filter(name__search=query).extra(select={'relevance':
match_expr}, params=[query])
But when calling
File
"/usr/local/lib/python2.4/site-packages/django/contrib/sessions/middleware.py",
line 57, in _get_session
self._session_cache = s.get_decoded()
File
"/usr/local/lib/python2.4/site-packages/django/contrib/sessions/models.py",
line 61, in get_decoded
encoded_data =
If you running Eclipse with PyDev you can create a file
'debugServer.py' with the following content:
import os
os.environ['DJANGO_SETTINGS_MODULE']='mysite.settings'
from django.core import management
management.runserver(addr='0.0.0.0', port='8080', use_reloader=False)
Then set up Eclipse to
15 matches
Mail list logo