PDF page break

2016-05-22 Thread Suzal Martin
I wants to know how to use the page break for PDF having more no of rows, 
including header and footer.


-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/db35b1cd-3df1-4bfd-a7da-ebebb4524074%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Identity management in Django

2016-05-22 Thread Andreas Jung
 

Hi there,


I am currently checking for identity management solutions - either 
cloud-based or

self-hosted (preferred on Python technology). Any pointers to integrations 
with

Django that could be re-used without reinventing the wheel?


Requirements are as


- MUST

- extensible metadata for user records

- user registration, password reset,

- user approval workflow (new accounts must be verified (optionally)

- user management interface

- embedding of login form, password reset form and all other forms into 
the look & feel of our website

- no branding

- notifications (user registered, password reset, user account 
deactivated etc).

- must support German as language for forms, notification emails etc.

- operate in accordance with EU/DE privacy laws

- any data should be stored within the EU/DE

- service should be located in EU/DE for performance reasons

- OPTIONAL

- user accounts can be assigned to groups („free“ vs. „premium“, 
„member“ vs. „admin“ etc.)

- social media login

- multi-factor authentication

- configurable password policies

- password expiration

- abuse protection (tracking of login trial, mechanisms for protecting 
the site from bots or automatic password hacker scripts etc)


Andreas

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/16033596-a0ff-4aa4-8890-71844a9758e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Displaying a document

2016-05-22 Thread Wilfredo Rivera
It give me this kind of error:


Using the URLconf defined in hr_solution.urls, Django tried these URL 
patterns, in this order: 

   1. ^admin/ 
   2. ^user/ 
   3. ^$ [name='candidate_entry'] 
   4. ^candidatelist/$ [name='candidate_list'] 
   5. 
^candidatelist/(?P\d{4})/(?P\d{1,2})/(?P\d{1,2})/(?P[-\w]*)/$
 
   [name='candidate_detail'] 
   6. 
^candidatelist/(?P\d{4})/(?P\d{1,2})/(?P\d{1,2})/(?P[-\w]*)/update/$
 
   [name='candidate_update'] 

The current URL, candidatelist/resume/Resume_Wilfredo_Rivera.pdf, didn't 
match any of these.


How can I desing a url that match the one with the uploaded file and what 
view handles it?


On Saturday, May 21, 2016 at 7:56:42 PM UTC-7, luisza14 wrote:
>
>
> 2016-05-21 13:21 GMT-06:00 Wilfredo Rivera  >:
>
>> {{candidate.resumeFile}}"
>
>
>
> {{candidate.resumeFile.name}}
> "
>
> Looking in your code probably you could be interested in 
> https://docs.djangoproject.com/ja/1.9/ref/class-based-views/generic-editing/
>
>
>
> -- 
> "La utopía sirve para caminar" Fernando Birri
>
>
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/57e762ed-7f74-42b5-a7c4-1eab58a7a648%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


django 1.8 or 1.9.2 is not installed in my window 7

2016-05-22 Thread Shivam Taneja
django 1.9.2 is not installed in my window 7 in python 2.7 its indicating 
the error

C:\Python27>python setup.py install
Traceback (most recent call last):
  File "setup.py", line 32, in 
version = __import__('django').get_version()
ImportError: No module named django



this type of error is showing in my command so please help me to resolve 
this issue

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7056f2fe-36d4-48a8-be5e-32131c8261ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Displaying a document

2016-05-22 Thread Wilfredo Rivera
I fixed it. but now the website give me the option of downloading the file. 
How can i do for the website to display the file?

On Sunday, May 22, 2016 at 8:27:10 AM UTC-7, Wilfredo Rivera wrote:
>
> It give me this kind of error:
>
>
> Using the URLconf defined in hr_solution.urls, Django tried these URL 
> patterns, in this order: 
>
>1. ^admin/ 
>2. ^user/ 
>3. ^$ [name='candidate_entry'] 
>4. ^candidatelist/$ [name='candidate_list'] 
>5. 
> ^candidatelist/(?P\d{4})/(?P\d{1,2})/(?P\d{1,2})/(?P[-\w]*)/$
>  
>[name='candidate_detail'] 
>6. 
> ^candidatelist/(?P\d{4})/(?P\d{1,2})/(?P\d{1,2})/(?P[-\w]*)/update/$
>  
>[name='candidate_update'] 
>
> The current URL, candidatelist/resume/Resume_Wilfredo_Rivera.pdf, didn't 
> match any of these.
>
>
> How can I desing a url that match the one with the uploaded file and what 
> view handles it?
>
>
> On Saturday, May 21, 2016 at 7:56:42 PM UTC-7, luisza14 wrote:
>>
>>
>> 2016-05-21 13:21 GMT-06:00 Wilfredo Rivera :
>>
>>> {{candidate.resumeFile}}"
>>
>>
>>
>> {{candidate.resumeFile.name}}
>> "
>>
>> Looking in your code probably you could be interested in 
>> https://docs.djangoproject.com/ja/1.9/ref/class-based-views/generic-editing/
>>
>>
>>
>> -- 
>> "La utopía sirve para caminar" Fernando Birri
>>
>>
>>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/635eb4ea-5766-498c-87e7-92a0ed1a8048%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django 1.8 or 1.9.2 is not installed in my window 7

2016-05-22 Thread Avraham Serour
did you try using pip to install?
> pip install django


On Sun, May 22, 2016 at 6:34 PM, Shivam Taneja 
wrote:

> django 1.9.2 is not installed in my window 7 in python 2.7 its indicating
> the error
>
> C:\Python27>python setup.py install
> Traceback (most recent call last):
>   File "setup.py", line 32, in 
> version = __import__('django').get_version()
> ImportError: No module named django
>
>
>
> this type of error is showing in my command so please help me to resolve
> this issue
>
> --
> 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 https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7056f2fe-36d4-48a8-be5e-32131c8261ab%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFWa6tL08itvjtA7gSWX1kFcM6J82noFBYt9v7oYYb9-%3D-egew%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: selectively remove forms from formset in view function

2016-05-22 Thread Richard Brockie
OK - after playing around with this I am finding that it is rather 
difficult. Instead, I recommend that you only create the forms that you 
need in the first place in the view function. This requires a change in the 
structure of my code, so I'll have to make do for the time being with the 
larger than I would like file size.

On Thursday, May 19, 2016 at 8:18:17 AM UTC-7, Richard Brockie wrote:
>
> Hi,
>
> I'm working with pagination of a large formset in my view function. For 
> forms outside the range to be viewed, I'm currently doing this:
>
> for form in results_formset:
> place_to_test = int(form['placing'].value())
>
> if place_to_test not in visible_range:
> form.fields['race_number'].widget = HiddenInput()
>
>
> visible_range is a list of places that should be viewed according to the 
> pagination.
>
> However, most of the formset is hidden. Simply using a HiddenInput() 
> results in a large number of non-visible forms still being sent from the 
> server. I have a scheme where I will condense the hidden information from 
> the non-visible forms to save bandwidth. To do this within the current code 
> structure requires me to be able to remove a non-visible form from the 
> formset.
>
> My code should become something like:
>
> for form in results_formset:
>
> place_to_test = int(form['placing'].value())
> race_number = form['race_number'].value()
>
> if place_to_test not in visible_range:
>
> # need method to remove form from results_formset
> pass
>
> # condensing the information to save bandwidth
> if place_to_test < range_min:
> hidden_before.append("%s:%s" % (place_to_test, race_number))
> elif place_to_test > range_max:
> hidden_after.append("%s:%s" % (place_to_test, race_number))
>
>
> I can't find how to remove the non-visible form from the formset - can 
> anyone provide a pointer?
>
> Best wishes,
> Richard Brockie
>

-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/53de4f70-6578-404b-b6c4-48a68dcf5900%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django 1.8 or 1.9.2 is not installed in my window 7

2016-05-22 Thread Mandeep Tondak
you can try

pip install django==1.9.2

thanks
Mandeep Kumar

On Sun, May 22, 2016 at 10:20 PM, Avraham Serour  wrote:

> did you try using pip to install?
> > pip install django
>
>
> On Sun, May 22, 2016 at 6:34 PM, Shivam Taneja 
> wrote:
>
>> django 1.9.2 is not installed in my window 7 in python 2.7 its indicating
>> the error
>>
>> C:\Python27>python setup.py install
>> Traceback (most recent call last):
>>   File "setup.py", line 32, in 
>> version = __import__('django').get_version()
>> ImportError: No module named django
>>
>>
>>
>> this type of error is showing in my command so please help me to resolve
>> this issue
>>
>> --
>> 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 https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/7056f2fe-36d4-48a8-be5e-32131c8261ab%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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 https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAFWa6tL08itvjtA7gSWX1kFcM6J82noFBYt9v7oYYb9-%3D-egew%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Warm Regard:-*
*Mandeep Kumar*



-- 
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJri7SRMKA-g_iuk%2BV-AscvROaQNv_gs6jZNkh6hYFYkLCKYJg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.