Re: Abridged summary of django-users@googlegroups.com - 35 updates in 12 topics

2016-09-14 Thread Mandeep Tondak
Hey You can use AVTAR package for images upload On Thu, Sep 15, 2016 at 11:04 AM, Constantine Covtushenko < constantine.covtushe...@gmail.com> wrote: > Hi Juliana, > > Did check this django doc > page? > It describes basics of how

Re: Abridged summary of django-users@googlegroups.com - 35 updates in 12 topics

2016-09-14 Thread Constantine Covtushenko
Hi Juliana, Did check this django doc page? It describes basics of how to work with files. The same stands for images. Also you can check one of the available extensions. I was using django-filer.

Re: creating a loginpage

2016-09-14 Thread Tim Graham
Have you looked at the official Django documentation? http://masteringdjango.com/django-book/ is another nice resource. On Wednesday, September 14, 2016 at 2:22:18 PM UTC-4, Timothy Steele wrote: > > Thanks Tim it has work this time but can any one help me with a beginner > book to learn Django

Re: How to populate self._reverse_dict with a default language code ?

2016-09-14 Thread Mike Dewhirst
On 14/09/2016 11:43 PM, Etienne Robillard wrote: Hi, Is there a way to populate self._reverse_dict to contain a default language_code in case the setting USE_I18N is set to False? return self._reverse_dict.get("language_code", defaultlanguagecode) or try: languagecode = failing_routine

Re: Django exit function

2016-09-14 Thread Erik Cederstrand
> Den 14. sep. 2016 kl. 23.00 skrev Krešimir : > > Thank you, dear Sir! > > I have tried as-user-atexit and it does not work with Ctrl+c event. Don't > know about other exit events since my machine powers the light in question. > So the light goes off when machine goes off anyway. You *might*

Re: Django exit function

2016-09-14 Thread Krešimir
Thank you, dear Sir! I have tried as-user-atexit and it does not work with Ctrl+c event. Don't know about other exit events since my machine powers the light in question. So the light goes off when machine goes off anyway. Maybe if I constantly check fo existance of some django system process?

Re: creating a loginpage

2016-09-14 Thread Timothy Steele
Thanks Tim it has work this time but can any one help me with a beginner book to learn Django please On Wednesday, September 14, 2016 at 4:44:14 PM UTC+1, Timothy Steele wrote: > > Instead of providing the view itself, i want to pass its module path as a > string in the urls.py file as the c

Re: creating a loginpage

2016-09-14 Thread Timothy Steele
Tim Graham, I did it but i get back this error *login() missing 1 required positional argument: 'user' * On Wednesday, September 14, 2016 at 4:44:14 PM UTC+1, Timothy Steele wrote: > > Instead of providing the view itself, i want to pass its module path as a > string in the urls.py file as the

Re: creating a loginpage

2016-09-14 Thread Andrea D'Amore
On 14 September 2016 at 17:44, Timothy Steele wrote: > Instead of providing the view itself, i want to pass its module path as a > string in the urls.py file as the code below > > urlpatterns = ['', > url(r'^$', main_page), > url(r'^user/(\w+)/$', user_page), > url(r'^login/$', 'd

Re: creating a loginpage

2016-09-14 Thread Tim Graham
Import the view: from django.contrib.auth.views import login and replace 'django.contrib.auth.views.login' with a reference to the login function. from django.contrib.auth.views import login urlpatterns = [ <-- remove the empty string on this line ... url(r'^login/$', login), ] On Wed

How to populate self._reverse_dict with a default language code ?

2016-09-14 Thread Etienne Robillard
Hi, Is there a way to populate self._reverse_dict to contain a default language_code in case the setting USE_I18N is set to False? See: http://dpaste.com/3Q1NHXA Regards, Etienne -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscr

Re: export html to pdf

2016-09-14 Thread 06userit
Hello, To generate pdf document from html pages, I use weasyprint http://weasyprint.org/ for my project . Hope this helps. Cheers. > > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

creating a loginpage

2016-09-14 Thread Timothy Steele
Instead of providing the view itself, i want to pass its module path as a string in the urls.py file as the code below urlpatterns = ['', url(r'^$', main_page), url(r'^user/(\w+)/$', user_page), url(r'^login/$', 'django.contrib.auth.views.login'), ] but it return this informati

export html to pdf

2016-09-14 Thread Saeon Tao
Hi guys, Does someone have a great suggestion for exporting an html div and save to pdf? i have found many options, only some of which are integrated with django. In your experience, which is the best one to use for django==1.6.2 ? should i choose an integrated one? or is it possible to use jqu