Re: reg:not able to open registration form web page

2017-11-18 Thread James Schneider
Here's how I would modify the view: views.py def SignUpFormView(request): user_form = 'SignUpForm' template_name = 'test.html' Delete the above two lines. It appears you are mixing class-based and function-based views. In this case, you are using a function-based view.

Re: reg:not able to open registration form web page

2017-11-18 Thread 'Amitesh Sahay' via Django users
Hello Mike,  Thank you for your reply again. And I have already gone through the link. I am looking for exact code that I am supposed to write inside my 2nd "if" condition, as may be I am not able to understand the logic. Django docs have lots of information, which is creating confusion to me.

Re: Django field model for HTML parser?

2017-11-18 Thread Jason
What you're trying to look for is a WYSIWYG editor (What You See Is What You Get), and there are a number of third party packages you can look at https://djangopackages.org/grids/g/wysiwyg/ ckeditor is one of the largest and most popular such projects, and has integration with django via

Re: How to Speed up Loading the First Page of Django Project?

2017-11-18 Thread flora . xiaoyun . huang
Thank you for your reply. The first page always loads slowly while the rest of the pages loads at a normal speed. Whether I restart the apache or not doesn't affect the speed of loading the first page - always slow. Below is the configuration file in the sites-available folder under apache. My

Re: Problem with Django TemplateDoesNotExist.

2017-11-18 Thread 'Amitesh Sahay' via Django users
Hi, 1) Its pretty obvious that the django is not able to find the required file in the given file path, so please it.  2) As far as I know, the django 1.11 is supported by Python 3.6. So,  I would recommend you to go through the release notes of the 1.11 and use the recommended system

Re: Django field model for HTML parser?

2017-11-18 Thread drone4four
The official Django docs specify that STATIC_ROOT is indicated in settings.py at the STATIC_URL variable (which is near the bottom). The official Django docs says: Configure your web server to serve the files in STATIC_ROOT >

Re: How to Speed up Loading the First Page of Django Project?

2017-11-18 Thread flora . xiaoyun . huang
And this is the first few lines of requests in the network section in developer tools. You can see that the first step to verify the user's identification takes so long.

Re: Django field model for HTML parser?

2017-11-18 Thread 'Simon Connah' via Django users
The error message is pretty obvious. "You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path." Set the STATIC_ROOT setting in settings.py. https://docs.djangoproject.com/en/1.11/ref/settings/#static-root On Saturday, 18 November 2017, 20:12:52 GMT,

Re: Django field model for HTML parser?

2017-11-18 Thread drone4four
Thank you, Jason. The WYSIWYG editor like ckeditor is precisely what I am looking for. I have set out to run ckeditor. I am following along with the instructions on how to install it . Inside my virtual environment I invoke

Re: Problem with Django TemplateDoesNotExist.

2017-11-18 Thread Mike Dewhirst
On 19/11/2017 4:55 AM, jamesmarcusdavy7 wrote: Hello, am using django 1.11.7 with python 2.7.13.But i have a problem when trying to load my page,the page gives me this error TemplateDoesNotExist at / base.html Request Method: GET Request URL:http://127.0.0.1:8000/ Django

Problem with Django TemplateDoesNotExist.

2017-11-18 Thread jamesmarcusdavy7
Hello, am using django 1.11.7 with python 2.7.13.But i have a problem when trying to load my page,the page gives me this error TemplateDoesNotExist at / base.html Request Method: GET Request URL: http://127.0.0.1:8000/ Django Version: 1.11.7 Exception Type: TemplateDoesNotExist Exception