django-contrib Questions

4

Note: If you are tempted to 'answer' this question by telling me that you don't like django.contrib.auth, please move on. That will not be helpful. I am well aware of the range and strength of opin...

7

Solved

I have the following method: def _attempt(actor): if actor.__class__ != User: raise TypeError Which is called from a view: self.object.attempt(self.request.user) As you can see, the _attemp...
Selfdeceit asked 3/7, 2012 at 16:6

1

Solved

I have run into the same problem that @JohnnyQ has commented on here. My __init__.py is referring to multiple imports that in-turn are referring to models and these are required. The code works pe...
Combustible asked 27/1, 2020 at 8:5

1

Solved

I'm trying to implement an integration test for the password reset flow, but I'm stuck at the "password_reset_confirm" view. I already tested the flow manually, and it works fine. Unfortunately, th...

1

Solved

My django project is working with a third-party forum. The activation_email is being send through get_current_site(request). The password rest is done by a django built called password_reset from d...
Relume asked 9/3, 2016 at 17:48

2

I dont know if I am confusing the purpose of collectstatic. Here's my settings module: # BASE_DIR is the location of my django project folder STATIC_URL = '/this.static/' STATIC_ROOT = os.path.jo...
Halflife asked 6/8, 2015 at 15:56

3

Solved

The title may have been confusing, but please let me explain: Currently when I am storing phone number with raw digits like 5554441234. Then in my template I was going to "format" the number into ...
Prayerful asked 30/3, 2012 at 10:6

4

Solved

I found some under the tests directory but I'm not sure if they are the right ones. By authentication templates I mean login.htm, password_reset.htm, etc. Some of the templates can be found...
Dustin asked 11/7, 2011 at 6:14

2

Solved

When I try to run python manage.py test in my Django (1.4) project, I get the error: ERROR: test_site_profile_not_available (django.contrib.auth.tests.models.ProfileTestCase) ---------------------...

2

Solved

I just switched from 1.2 to trunk (r15175 at this writing) to play with contrib.staticfiles, and now when using the local devserver all my admin media returns a 404. The static media (as managed by...
Backward asked 14/1, 2011 at 18:15

1

Solved

Problem: When I add UpdateCacheMiddleware and FetchFromCacheMiddleware to my Django project, I get unittest failures. This is regardless of the CACHE_BACKEND I use (right now I am using locmem://, ...
Hewart asked 10/7, 2010 at 14:59

2

Solved

Currently, django.contrib.comments sends the user to the preview page if there is any error on the form. I am using comments in the context of a blog and I would much rather that the user stayed ...
Morissa asked 23/7, 2009 at 20:1
1

© 2022 - 2024 — McMap. All rights reserved.