Migration of logins from Google OpenID to Google+

2014-10-05 Thread Evgeny
Hello, I'm trying to develop migration of old style OpenID logins to g+ in 
Askbot app.

Implemented g+ login, but so far was unable to obtain the openid_id field.
I haven't seen an example of working code of migrating the logins anywhere.

Was anyone able to do this? Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/322ade9b-6145-43cf-b6df-bbbe7b15a909%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Auction app

2013-03-27 Thread Evgeny Demchenko
There's this one:
https://github.com/kaijutech/Django-Auction

i'm about to try it out. If it's not good I'll create one from scratch.

Will keep you posted :)

On Monday, February 2, 2009 2:10:01 AM UTC+8, Erik Allik wrote:
>
> Does anyone know of an app written for Django that implements a kind  
> of (simple) web-auction functionality suitable for, say, selling arts,  
> valuable old books, or just random items?
>
> Erik
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




How to write startup tests for urlconf?

2011-08-06 Thread Evgeny
Hello,

Is it possible to somehow interrogate url configuration at startup
time?
I am trying to give users a meaningful message when something needs to
be changed
in the url configuration.

For example - now I need to change the handler500 and handler404, when
my app
is upgraded.

Tried many ways, but just could not import stuff from the urls.py

This is ran on top of my models module (an abbreviated example):

def test_urlconf():
import urls
assert(urls.handler404 == 'askbot.views.meta.page_not_found')

Where can I place such test?
Also - what is a good way to access error view handlers
programmatically?

Thanks.
Evgeny.

-- 
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.



Re: Unit test successful in isolation, fails when the whole app is tested

2011-04-08 Thread Evgeny
Thanks, Karen.

The specifics are:
* when the test is run as
  "python manage.py test askbot"
   - all tests from this suite fail (there are two, only one shown for
brevity)
   and the remaining 400 or so tests pass
* the nature of failure - there are 0 email in the outbox (with one
expected)
* when the tests are run as
  "python manage.py test
askbot.TagFollowedInstantWholeForumEmailAlertTests"
  tests pass.

So there must be something in the previous tests
or the application code they ran before...

Another thing - I use celery to send emails and have setting
CELERY_ALWAYS_EAGER = True, as recommended for the testing purposes.






On Apr 8, 3:47 am, Karen Tracey <kmtra...@gmail.com> wrote:
> On Thu, Apr 7, 2011 at 11:21 PM, Evgeny <evgeny.fad...@gmail.com> wrote:
>
> > I have one test suite (among many others) in my application that
> > succeeds in isolation, but fails
> > when I run the whole battery. Could anyone suggest where to start
> > looking?
>
> Start with the specifics of the failure, look at the previously run tests
> and see what they may have done that could cause the failure. I don't think,
> for example, that the email outbox is reset between test methods (which
> strikes me as a bit odd at the moment, I'm not sure why that is not reset
> for each test run...perhaps I'm wrong about it not being reset or there is a
> good reason that escapes me at the moment). Anyway I think your assertions
> that are testing for a specific number of emails in the box could fail if a
> previous test caused email to be sent also. But you haven't said what the
> specifics of the failure are so I'm not sure that is what you are seeing.
>
> Karen
> --http://tracey.org/kmt/

-- 
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.



Unit test successful in isolation, fails when the whole app is tested

2011-04-07 Thread Evgeny
Hello,

I have one test suite (among many others) in my application that
succeeds in isolation, but fails
when I run the whole battery. Could anyone suggest where to start
looking? Thanks.

Posting the code below. The test is counting number of emails sent as
a result of posting a question
at the forum. The emails are send by a Celery task (with
CELERY_ALWAYS_EAGER = True).

class
TagFollowedInstantWholeForumEmailAlertTests(utils.AskbotTestCase):
def setUp(self):
self.create_user(
username = 'user1',
notification_schedule = {'q_all': 'i'},
status = 'm'
)
self.create_user(
username = 'user2',
status = 'm'
)

def test_wildcard_catches_new_tag(self):
"""users asks a question with a brand new tag
and other user subscribes to it by wildcard
"""
askbot_settings.update('USE_WILDCARD_TAGS', True)
self.user1.email_tag_filter_strategy =
const.INCLUDE_INTERESTING
self.user1.save()
self.user1.mark_tags(
wildcards = ('some*',),
reason = 'good',
action = 'add'
)
self.user2.post_question(
title = 'some title',
body_text = 'some text for the question',
tags = 'something'
)
outbox = django.core.mail.outbox
self.assertEqual(len(outbox), 1)
self.assertEqual(len(outbox[0].recipients()), 1)
self.assertTrue(
self.user1.email in outbox[0].recipients()
)

-- 
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.



Re: How to clear wrong form data (e.g password field), but still show error?

2010-09-16 Thread Evgeny
perfect, Thanks!

On Sep 16, 7:55 pm, Brian Neal  wrote:
> On Sep 16, 7:37 pm, Karen Tracey  wrote:
>
> > Use this widget for the field:
>
> >http://docs.djangoproject.com/en/1.2/ref/forms/widgets/#django.forms
>
> > with render_value=False
>
> Note that the docs indicate the default value for render_value is True
> but in the code it is False:
>
> http://code.djangoproject.com/browser/django/trunk/django/forms/widge...

-- 
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 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.



How to clear wrong form data (e.g password field), but still show error?

2010-09-16 Thread Evgeny
Hello,

I know that this has been asked before, and the answer seemed to be
- display the wrong data back to the user along with the error
message.

However, this does not really work with password fields, because there
is nothing really to display.
Let's say the entered password was too short or two passwords did not
match - all you'll see is the equal number of asterisks.

In this situation I'd like to clear the fields, but display the error
message,
otherwise user has to clear the field himself/herself, which I think
is an unnecessary extra step.

Why not just allow :

form.clear_field_data('somefield')

Thanks.

Evgeny.

-- 
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 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.



custom model fields are always "modified" when saving from the admin change form

2010-09-10 Thread Evgeny Sizikov
Hi.

I've wrote a custom model field which splits strings by commas and
returns a list of values. Everything works fine except the admin -
after editing a record admin treats the custom fields as modified even
if they were actually not, issuing an UPDATE query for (not modified)
record and adding a history record.

How could I have that been fixed?

-- 
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 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.



problem mixing Q and F objects and logical operators

2009-11-11 Thread Evgeny
following two queries give me different number of results:

Q(viewed__who=user,viewed__when__lt=F('last_activity_at'))
|  ~Q(viewed__who=user)

~Q(viewed__who=user) |
Q(viewed__who=user,viewed__when__lt=F('last_activity_at'))

the first one seems to be more correct. The only difference is the
order of OR'ed Q() statements in the query.

is this an issue with the SQL generator?

Thanks.
Evgeny.

--

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




Re: domains vs sub-domains

2009-11-10 Thread Evgeny

>From the user's point of view #2 might be better
i'd think that most people naturally "root" path to site name



On Nov 10, 12:38 pm, Paul Menzel  wrote:
> Am Montag, den 09.11.2009, 21:38 -0800 schrieb Chris:
>
> > I've recently been in discussion about which is better to have.
>
> >http://media.example.comOR
> >http://example.com/media/
>
> > 1) The first method, I've been told, allows you to make more requests.
> > IE for example can only make like 4 requests at a given time on a
> > given domain. but, if you use sub-domains, you can make additional
> > requests (4 additional in the example of IE).
>
> I am not sure, but I think if you use SSL this could lead to problems
> because some files are loaded from a different server.
>
> […]
>
>  signature.asc
> < 1KViewDownload
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Just upgraded to 1.1, can't start development server, TypeError

2009-11-10 Thread Evgeny

I think I found a workaround:
first completely delete previous django installation, then install
1.1.1

the problem went away for me after this manipulation.

On Nov 10, 12:39 pm, Evgeny <evgeny.fad...@gmail.com> wrote:
> Same problem here. Any ideas?
> Thanks!
>
> On Oct 14, 7:11 pm, eculver <e.imat...@gmail.com> wrote:
>
> > Not so sure about that. Here are my installed apps:
>
> > INSTALLED_APPS = (
> >     'django.contrib.auth',
> >     'django.contrib.contenttypes',
> >     'django.contrib.sessions',
> >     'django.contrib.sites',
> >     'django.contrib.admin',
> >     'myproject.api',
> >     'myproject.pages',
> >     'myproject.contact_form',
> >     'myproject.albums',
> >     'myproject.paypalcart',
> >     'myproject.messaging',
> > )
>
> > None of them are being pulled from my python path? Am I missing
> > something obvious?
>
> > On Oct 14, 1:09 am, Lakshman Prasad <scorpion...@gmail.com> wrote:
>
> > > Seems like, some of the apps that you have in settings.py INSTALLED_APPS 
> > > are
> > > there in the pythonpath for python2.5 and not for python2.6.
> > > You will need to do a easy_install-2.6 (or a corresponding pip/distribute
> > > equivalent) package_name
>
> > > On Wed, Oct 14, 2009 at 11:48 AM, eculver <e.imat...@gmail.com> wrote:
>
> > > > I just tried upgrade to django 1.1, ran ./manage.py runserver, but was
> > > > promptly halted due to this exception:
>
> > > > ...
>
> > > > File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
> > > > site-packages/django/utils/translation/trans_real.py", line 180, in
> > > > _fetch
> > > >    app = import_module(appname)
> > > >  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> > > > python2.6/site-packages/django/utils/importlib.py", line 35, in
> > > > import_module
> > > >    __import__(name)
> > > >  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> > > > python2.6/site-packages/django/contrib/admin/__init__.py", line 1, in
> > > > 
> > > >    from django.contrib.admin.options import ModelAdmin, HORIZONTAL,
> > > > VERTICAL
> > > >  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> > > > python2.6/site-packages/django/contrib/admin/options.py", line 5, in
> > > > 
> > > >    from django.contrib.contenttypes.models import ContentType
> > > >  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> > > > python2.6/site-packages/django/contrib/contenttypes/models.py", line
> > > > 1, in 
> > > >    from django.db import models
> > > >  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> > > > python2.6/site-packages/django/db/__init__.py", line 57, in 
> > > >    'TIME_ZONE': settings.TIME_ZONE,
> > > > TypeError: __init__() takes exactly 1 argument (2 given)
>
> > > > Everything worked fine in 1.0.4 before the upgrade. Seems like it may
> > > > be an obvious upgrade problem/oversight on my part. Any ideas?
>
> > > --
> > > Regards,
> > > Lakshman
> > > becomingguru.com
> > > lakshmanprasad.com
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Feedback on Django1.1.1

2009-11-10 Thread Evgeny

sometimes there is this error after upgrade to 1.1.1:

http://groups.google.com/group/django-users/browse_thread/thread/c6a61a3788138745



On Nov 7, 9:29 am, Tomasz Zieliński 
wrote:
> On 7 Lis, 09:03, Good Z  wrote:
>
>
>
> > Any feedback on 1.1 for production software is appreciated.
>
> I recently migrated quite big live service from 1.0.2 to 1.1.1
> and I didn't observe even single migration-related problem.
> It was probably the smoothestupgradeI had in a few years.
> But I remember migrating from 0.9 to 1.0 and that wasn't as smooth
> as 1.0->1.1.
>
> --
> Tomasz Zielińskihttp://pyconsultant.eu
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Just upgraded to 1.1, can't start development server, TypeError

2009-11-10 Thread Evgeny

Same problem here. Any ideas?
Thanks!

On Oct 14, 7:11 pm, eculver  wrote:
> Not so sure about that. Here are my installed apps:
>
> INSTALLED_APPS = (
>     'django.contrib.auth',
>     'django.contrib.contenttypes',
>     'django.contrib.sessions',
>     'django.contrib.sites',
>     'django.contrib.admin',
>     'myproject.api',
>     'myproject.pages',
>     'myproject.contact_form',
>     'myproject.albums',
>     'myproject.paypalcart',
>     'myproject.messaging',
> )
>
> None of them are being pulled from my python path? Am I missing
> something obvious?
>
> On Oct 14, 1:09 am, Lakshman Prasad  wrote:
>
> > Seems like, some of the apps that you have in settings.py INSTALLED_APPS are
> > there in the pythonpath for python2.5 and not for python2.6.
> > You will need to do a easy_install-2.6 (or a corresponding pip/distribute
> > equivalent) package_name
>
> > On Wed, Oct 14, 2009 at 11:48 AM, eculver  wrote:
>
> > > I just tried upgrade to django 1.1, ran ./manage.py runserver, but was
> > > promptly halted due to this exception:
>
> > > ...
>
> > > File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/
> > > site-packages/django/utils/translation/trans_real.py", line 180, in
> > > _fetch
> > >    app = import_module(appname)
> > >  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> > > python2.6/site-packages/django/utils/importlib.py", line 35, in
> > > import_module
> > >    __import__(name)
> > >  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> > > python2.6/site-packages/django/contrib/admin/__init__.py", line 1, in
> > > 
> > >    from django.contrib.admin.options import ModelAdmin, HORIZONTAL,
> > > VERTICAL
> > >  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> > > python2.6/site-packages/django/contrib/admin/options.py", line 5, in
> > > 
> > >    from django.contrib.contenttypes.models import ContentType
> > >  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> > > python2.6/site-packages/django/contrib/contenttypes/models.py", line
> > > 1, in 
> > >    from django.db import models
> > >  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
> > > python2.6/site-packages/django/db/__init__.py", line 57, in 
> > >    'TIME_ZONE': settings.TIME_ZONE,
> > > TypeError: __init__() takes exactly 1 argument (2 given)
>
> > > Everything worked fine in 1.0.4 before the upgrade. Seems like it may
> > > be an obvious upgrade problem/oversight on my part. Any ideas?
>
> > --
> > Regards,
> > Lakshman
> > becomingguru.com
> > lakshmanprasad.com
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Filefield upload path

2009-08-20 Thread Evgeny

Already found the answer. Sorry for the unnesessary message.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Filefield upload path

2009-08-20 Thread Evgeny

Hi,
what would be the best way to make FileFields and ImageFields upload
files to directory not under MEDIA_ROOT?
I need to save data to not public directoty
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Is there any way to automatize caching of particular model?

2009-08-13 Thread Evgeny

Hi,
is there any right way to automatize caching of instances of
particular model, e.g. User from standard auth middleware?
My users are referenced by a lots of objects in templates and I'm
trying to avoid unnesessary queries (including select_related()).
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



AutoRefresh model field (filled in by a trigger)

2009-08-12 Thread Evgeny

Hi,
I have some fields in a model which are filled in by before_insert
trigger.
Is there any right way to autorefresh them after the object is
inserted, besides requesting a new instance of the object by
model.objects.get() method?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



forms - dynamically change initial values

2009-02-13 Thread Evgeny

Hi,
I'm trying to make a redirect after a form has been submitted to the
page with the form itself. Still I want to keep the state of the
fields of the form. As the form becomes unbound after such redirect I
probably have to dynamically set the initial values for the fiels of
the specific exemplar of the form.

Is there any simple way to do that?

It's all to allow the user to refresh the page with form without
warning message about resending data.

regards
Eugene.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: get children of children

2008-09-24 Thread Evgeny



On Sep 24, 11:49 am, "Matthias Kestenholz" <[EMAIL PROTECTED]> wrote:

> You probably mean this:
> C.objects.filter(id_b__id_a__exact=1)

> Maybe you meant A is referenced by B?

Yes, exactly this.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



get children of children

2008-09-24 Thread Evgeny

Hi,
There's an object hierarchy: A references B, B references C.
"references" means foreign key.
Is there a nice Django way to select all C objects which are
grandchilds of given A with one query? Somethink like

select C.* from C
join B on B.id = C.id_b
join A on A.id = B.id_a
where A.id = 1

i.e. in Django terms get all C objects which are children of
A.objects.get(id=1).B_set.all()

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: static.serve images from css template

2008-09-19 Thread Evgeny



On Sep 19, 3:33 pm, Evgeny <[EMAIL PROTECTED]> wrote:
> On Sep 19, 2:53 pm, Daniel Roseman <[EMAIL PROTECTED]>
> wrote:
>
> > Try putting an initial slash in your url:
> > url(/site_media/images/img5.jpg)
>
> > --
> > DR.
>
> Tried this. Still doesn't work.

Disredard that, it works, I just had images turned off when I checked
it.

Thank you, Daniel
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: static.serve images from css template

2008-09-19 Thread Evgeny



On Sep 19, 2:53 pm, Daniel Roseman <[EMAIL PROTECTED]>
wrote:

> Try putting an initial slash in your url:
> url(/site_media/images/img5.jpg)
>
> --
> DR.

Tried this. Still doesn't work.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



static.serve images from css template

2008-09-19 Thread Evgeny

Hi,
I have a problem with serving static images with
django.views.static.serve from urls defined in css file.
Everything works ok when an image is served by  tag in the
html (), but it doesn't work
when the link to the same image is in a css file (url(site_media/
images/img5.jpg)). The css file itself is served, and the css syntax
is correct.

To serve media I use the urls.py file pattern:

(r'^site_media/(?P.*)$', 'django.views.static.serve',
{'document_root': 'C:/Projects/djtest/djtest/site_media',
'show_indexes': True}),

I'm new in django, so probably I'm missing something. Or not.

Thanks in advance for any suggestions!

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Does Hostmonster support Django?

2007-11-17 Thread Evgeny

here is hostmonster's response about mod_python and django:
>We don't have mod_python installed, nor will we install it for anyone.
>We don't officially support django, but we've had many customers run/install 
>it successfully using fastcgi.

On Nov 12, 6:57 pm, Evgeny <[EMAIL PROTECTED]> wrote:
> hostmonsterallows ssh access, so you should be able to install django
> by yourself.
> I have not verified whether they have mod_python, but there is python
> installation.
>
> when I asked them to install python Imaging library - they refused.
> Told me that their policy is not to install extra libraries, but you
> should be able to do that in your user space.
> Evgeny.
>
> On Nov 11, 5:50 pm, Hannus <[EMAIL PROTECTED]> wrote:
>
> > Hi guys,
> > I am going to buy the host services in host monster,does it support
> > Django? If not, plz advice me some other hosting companies.
> > Thank you very much
>
> > Kind regards,
> > Hannus
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: AUTH_PROFILE_MODULE usable with v0.96?

2007-11-10 Thread Evgeny

 ok problem found AUTH_PROFILE_MODULE was set incorrectly
Thanks.

On Nov 10, 5:22 pm, "evgeny.fadeev" <[EMAIL PROTECTED]> wrote:
> For me the following view function gives the same error:
> def dummy_login(request):
>  u = User.objects.create_user('dummy','','dummy')
>  p = UserProfile()
>  p.user = u
>  p.save()
>  u.save()
>  print 'before auth',u.id
>  u = authenticate(username='dummy',password='dummy')
>  print 'is authenticated?',u.is_authenticated()
>  print 'after auth',u.id
>  print 'in profile user id is', p.user.id
>  p = u.get_profile()
>  return HttpResponse('done')
> --
> Console output is:
> before auth 9
> is authenticated? True
> after auth 9
> in profile user id is 9
>
> Any ideas? Looks like profile object instance is not saved in the database
> even though i did p.save()
>
> E.
> On Nov 7, 6:46 am, paulc <[EMAIL PROTECTED]> wrote:
>
> > I'm trying to follow the example in the Django book, to make a simple
> > extension of the standard User object.
>
> > I'm hoping someone may be able to give me a quick yes or no on this:
> > is the AUTH_PROFILE_MODULE setting expected to work with Django 0.96,
> > or do I need to upgrade to the SVN release?
>
> I have a couple of sites on 0.96 where it's been working without a
> problem.
>
>
>
>
>
> > Within a very simple view that I'm using just to try this out, I can
> > pick up the User object and access some of its fields (e.g. username)
> > and custom methods (e.g. is_authenticated);  but if I call the
> > get_profile() method, I see the following error:
>
> > Exception Type: AttributeError
> > Exception Value:'NoneType' object has no attribute
> > '_default_manager'
>
> > I'm pretty sure I have AUTH_PROFILE_MODULE set correctly (I do not get
> > the `too many values to unpack' error).
>
> > I do not see the SiteProfileNotAvailable error, which again seems to
> > suggest I have all the necessary middleware and settings present in
> > the configuration.
>
> Actually, it would help if you would paste here your
> AUTH_PROFILE_MODULE  setting as well as your profile model class.
> Also, what Django app name does this profile model live under?
>
> --
> View this message in 
> context:http://www.nabble.com/AUTH_PROFILE_MODULE-usable-with-v0.96--tf476421...
> Sent from the django-users mailing list archive at Nabble.com.


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



active tray

2007-05-17 Thread Evgeny

Hi,

I have a coupon code, allowing everybody of you to register Active
Tray with
a 10% discount. Active Tray is a must-have shell extension increasing
your productivity when working on the pc.
Here's it: ATCP-WDL0-TH
URL: http://www.activetray.com

Evgeny


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---