Re: Any Django users in Reims (France) ?

2013-08-20 Thread anthony tresontani

Salut,

Je suis sur Metz mais ca peut m'intéressé :)

Anthony

Le 21/08/2013 08:28, Fabrice Romand a écrit :

Bonjour,
Je cherche des dev Django dans la région de Reims (France)
pour organiser des rencontres sympas et échanger sur notre plateforme 
préférée

voire développer ensemble nos excellentes idées.
A votre écoute,
Fabrice
--
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.
For more options, visit https://groups.google.com/groups/opt_out.


--
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Easy way to temporarily disable the need to login

2012-09-05 Thread anthony tresontani

We are using a middleware to enforce a user login:

/class AutoAuthMiddleware(object):
"""
Middleware for testing purpose only.
Can enforce the user login.
"""

def process_request(self, request):
enforce_user = request.GET.get("enforce_user", None)
if hasattr(request, "user") and not enforce_user:
return

user = User.objects.filter(username = enforce_user)
if user:
backend = get_backends()[0]
user = user[0]
user.backend = "%s.%s" % (backend.__module__, 
backend.__class__.__name__) #fake authentication

login(request, user)/

You can add that to your testing environnement MIDDLEWARE_CLASSES.

Then you can just go to any url and add ?enforce_user=


On 05/09/12 17:56, Larry Martell wrote:

On Wed, Sep 5, 2012 at 9:36 AM, Kurtis Mullins  wrote:

I don't see why not.

I've been trying to do that, but it's still complaining.


Are you running unit tests (testing scripts) or are you
just using the browser for testing?

I'm trying to do performance measuring. I have a list of all the urls
accessed over the past few months by a client, along with metrics on
their execution times. I want to run all those on a new server we've
set up and collect metrics and compare them. I have a python script
that uses urllib2 but, I can't run anything without logging in. I've
tried to login from python, but I get a 403. I also tried using the
requests module - that doesn't give me the 403, but doesn't log me in
- it just returns the login page as if the login failed.


On Wed, Sep 5, 2012 at 11:24 AM, Larry Martell 
wrote:

On Wed, Sep 5, 2012 at 9:22 AM, Kurtis Mullins 
wrote:

If any of your templates/views depend upon a request.user object, you'll
run
into issues because that will not exist without "logging in". I'm not
sure
of a good way around this off-hand without knowing more about your site.
Sorry!

Yes, they do depend on a request.user object. Can I hard code the
initialization of it?


On Wed, Sep 5, 2012 at 11:18 AM, Larry Martell 
wrote:

We have a django app that requires the users to login. For some
testing we want to do, we want to disable this so the app can be run
without logging in. Is there some way to easily do this? I've tried
commenting out all the @login_required decorations, but then I was
getting a 403. I tried commenting out the 'if not
controller.has_access' lines, but then I was getting 'Report.owner"
must be a "User" instance.' Before I hack up the code any more, is
there some way to just globally disable the need to login?

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


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

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


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



--
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: E-commerce package

2012-09-04 Thread anthony tresontani

http://oscarcommerce.com/

On 04/09/12 09:27, zayatzz wrote:

http://satchmoproject.com/

On Tuesday, September 4, 2012 10:02:07 AM UTC+3, randa hisham wrote:

Iam developing an e-commerce website,lookig for a good django package
any recommends?

-- 
Randa Hesham

Software Developer

Twitter:@ro0oraa 
FaceBook:Randa Hisham 

ٍ

--
You received this message because you are subscribed to the Google 
Groups "Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/BAPgM_iNNz4J.

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.



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



Transaction not working with test

2011-12-05 Thread anthony tresontani
Hey Guys,

I am trying to test a transaction rollback in a unit test and it seems
to not work properly.

I am using Django 1.3, django-nose, sqlite inmemory database.

I tried with TestCase,TransactionTestCase, commit_on_success
(decorator and context manager) and commit_manually. None of them
worked.

Am I doing or expecting something wrong?

Thanks,

Anthony

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