plete guide here:
http://docs.djangoproject.com/en/1.3/topics/install/
Cheers,
Pedro Kroger
On Fri, Apr 22, 2011 at 10:50 PM, Hurin wrote:
> Hi, using Django framework for CDR-Stats + Asterisk. The instructions
> kind of confuses me. The How to get Django section has 2 options:
> -Get the l
Good point. Thank you guys!
Pedro
On Sat, Apr 16, 2011 at 2:15 PM, Martin Brochhaus
wrote:
> Also beware! Only do a client.post if you really want to test that a user
> submits a form. Usually when a not-logged-in-user wants to go to a secured
> page immediately he will try a get request and jus
Hi,
I writing some unit tests and I'd like to test if an unlogged user has
access to the main dashboard page.
In my application, if the user is logged it will go to the dashboard,
if it isn't, it will go to the login page.
I know how to get to the webpage:
result = self.client.post('/dashboard/')
You can try something like:
def my_view(request):
...
context = []
for offset in offsets:
before = ' '.join(tokens[offset-5:offset])
word = tokens[offset]
after = ' '.join(tokens[offset+1:offset+5])
context.append(before, word, after)
... ..
4 matches
Mail list logo