How can I use pdf.js to display the first page of every user-uploaded pdf file as a preview in Django?

2021-11-18 Thread iwor...@gmail.com
Hi, Kindley help me on this. https://stackoverflow.com/questions/70015641/how-can-i-use-pdf-js-to-display-the-first-page-of-every-user-uploaded-pdf-file-a -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Re: Having problem with first page of first tutorial

2019-03-25 Thread kendiramartha
wrote: > > Ive not done https://docs.djangoproject.com/en/2.1/intro/tutorial01/ 3 > times and cant get past the first page. Its kind of dryving me nuts. > > Where I am at is in github https://github.com/ben-tvpp/site01 > > Ive added the view > https://github.com/ben-tvpp/

Re: Having problem with first page of first tutorial

2019-03-23 Thread Thomas POKAM
You should make sure you import the module polls in the site01/urls.py file by adding this line: from polls import views Le 23/03/2019 à 19:47, Ben Edwards a écrit : Ive not done https://docs.djangoproject.com/en/2.1/intro/tutorial01/ 3 times and cant get past the first page.  Its kind

Re: Having problem with first page of first tutorial

2019-03-23 Thread Dylan Young
There is no polls/urls.py file in your repository. Best, Casey On Sat, 23 Mar 2019 at 16:23, Ben Edwards wrote: > Ive not done https://docs.djangoproject.com/en/2.1/intro/tutorial01/ 3 > times and cant get past the first page. Its kind of dryving me nuts. > > Where I am at is in

Having problem with first page of first tutorial

2019-03-23 Thread Ben Edwards
Ive not done https://docs.djangoproject.com/en/2.1/intro/tutorial01/ 3 times and cant get past the first page. Its kind of dryving me nuts. Where I am at is in github https://github.com/ben-tvpp/site01 Ive added the view https://github.com/ben-tvpp/site01/blob/master/polls/views.py # Create

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

2017-11-22 Thread Jason
Regardless, your solution is not a good one, because you shifted from a password hashing algorithm that enables protection against brute-force attacks to a different algorithm with no similar protection. I would highly suggest you read

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

2017-11-21 Thread flora . xiaoyun . huang
But that's all I revised of the code. The configuration file of server engine and all the other things keep the same. On Tuesday, November 21, 2017 at 2:09:08 PM UTC-5, Jason wrote: > > That is not a good solution. There's a reason why the default password > hashing algorithm is complex. > >

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

2017-11-21 Thread Jason
That is not a good solution. There's a reason why the default password hashing algorithm is complex. And I find it hard to believe that a password hash is the culprit here. Maybe a quarter second or so added to a response, but 10 seconds? that's definitely not the cause. -- You received

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

2017-11-21 Thread flora . xiaoyun . huang
. It is a complex algorithm, slowing down the speed to put users in the database. So I change PASSWORD_HASHERS to SHA1P. In this way, the user is put in the database faster, thus the first page is loaded faster. On Tuesday, November 21, 2017 at 9:15:54 AM UTC-5, Jason wrote: > > Does that worke

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

2017-11-21 Thread Jason
Does that worker call execute slowly each time you call it? Or is it just the once? I'd copy that URL and try calling it several times with an REST API client like Postman. Does the request execute that slowly each time you call it, or is it just the initial call that is slow? -- You

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

2017-11-19 Thread flora . xiaoyun . huang
, 2017 at 5:40:21 AM UTC-5, Antonis Christofides wrote: > > Hello, > > How does the verification work? > > Regards, > > Antonis > > Antonis Christofideshttp://djangodeployment.com > > On 2017-11-19 02:38, flora.xia...@gmail.com wrote: > > Thank you for your

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

2017-11-19 Thread Antonis Christofides
Hello, How does the verification work? Regards, Antonis Antonis Christofides http://djangodeployment.com On 2017-11-19 02:38, flora.xiaoyun.hu...@gmail.com wrote: > Thank you for your reply. The first page always loads slowly while the rest of > the pages loads at a normal speed. Whe

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

2017-11-18 Thread flora . xiaoyun . huang
PU/memory usage. Because what you're > describing is definitely not normal and is most likely related to how > Apache is configured. > > A point of clarification: does the first page always load slowly, or is it > just the first page after you restart the server? > > -- Y

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: How to Speed up Loading the First Page of Django Project?

2017-11-17 Thread Jason
I would suggest you post the configuration file here as well as the server specifications and average CPU/memory usage. Because what you're describing is definitely not normal and is most likely related to how Apache is configured. A point of clarification: does the first page always load

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

2017-11-16 Thread flora . xiaoyun . huang
Hi, I am deploying a Django project on Apache2. The Apache is running using mod_wsgi daemon mode. The first page of the website usually loads so slow. Before loading the first page (html, css) the user's identification should be verified (check the variable they pass through GET). When

Re: error at first page of django tutorial

2010-06-28 Thread Kenneth Gonsalves
On Monday 28 June 2010 13:51:28 samie wrote: > not able to fix it yet.. > > plz explain in detail.. > please go and learn the basics of python - as already suggested in this thread -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are

Re: error at first page of django tutorial

2010-06-28 Thread Daniel Roseman
On Jun 28, 9:21 am, samie wrote: > On Jun 28, 12:55 pm, Daniel Roseman wrote: > > > On Jun 28, 8:49 am, samie wrote: > > > > sir m getting problem in running my first django tutorial > > > page..available

Re: error at first page of django tutorial

2010-06-28 Thread samie
On Jun 28, 12:58 pm, Kenneth Gonsalves wrote: > On Monday 28 June 2010 13:19:45 samie wrote: > > > IndentationError at admin > > unexpected indent (urls.py, line 5) > > go to line 5 of your urls.py file and fix the indentation > -- > Regards > Kenneth Gonsalves > Senior

Re: error at first page of django tutorial

2010-06-28 Thread samie
On Jun 28, 12:55 pm, Daniel Roseman wrote: > On Jun 28, 8:49 am, samie wrote: > > > > > > > sir m getting problem in running my first django tutorial > > page..available athttp://docs.djangoproject.com/en/dev/intro/tutorial01/ > > > i had already

Re: error at first page of django tutorial

2010-06-28 Thread Kenneth Gonsalves
On Monday 28 June 2010 13:19:45 samie wrote: > IndentationError at admin > unexpected indent (urls.py, line 5) > go to line 5 of your urls.py file and fix the indentation -- Regards Kenneth Gonsalves Senior Associate NRC-FOSS at AU-KBC -- You received this message because you are subscribed

Re: error at first page of django tutorial

2010-06-28 Thread Daniel Roseman
On Jun 28, 8:49 am, samie wrote: > sir m getting problem in running my first django tutorial > page..available athttp://docs.djangoproject.com/en/dev/intro/tutorial01/ > > i had already tried it for 3 times earlier.. but not making it up to// > > i have installed django

error at first page of django tutorial

2010-06-28 Thread samie
sir m getting problem in running my first django tutorial page..available at http://docs.djangoproject.com/en/dev/intro/tutorial01/ i had already tried it for 3 times earlier.. but not making it up to// i have installed django from http://bitbucket.org/mirror/django-trunk that u earlier told me

Re: Flatpage on first page of a website

2009-10-16 Thread Lars Stavholm
Alessandro Ronchi wrote: > I need to put a flatpage on / > and make www.example.com > return the flatpage. > > Is it possible? What url must I put in flatpage admin? No flatpages in admin as far as I know. At the frontend (your web site www.example.com) however: 1. Create a flatpage for with

Flatpage on first page of a website

2009-10-16 Thread Alessandro Ronchi
I need to put a flatpage on / and make www.example.com return the flatpage. Is it possible? What url must I put in flatpage admin? -- Alessandro Ronchi SOASI Sviluppo Software e Sistemi Open Source http://www.soasi.com --~--~-~--~~~---~--~~ You received this

Paginating differently on first page

2009-06-27 Thread efcjoe
Hey, I've come across an interesting problem that I can't figure out. It's fairly simple to explain though. Currently, I'm using object_list to handle pagination. Problem is, I need it to paginate by 7 on the first page, and then paginate by 10 on all the other pages. I've been trying

Re: First page access from another box, not 127.0.0.1

2009-01-12 Thread moiseyo
Thank you . it works! moisey o On Jan 12, 12:12 pm, Stefan Tunsch wrote: > Take a look > athttp://docs.djangoproject.com/en/dev/ref/django-admin/#runserver-opti... > > Regards, Stefan > > moiseyo escribió: > > > I'm new  with Django , and I'm follow the tutorial. > > > I

Re: The First Page

2009-01-12 Thread Nathaniel Whiteinge
On Jan 11, 9:53 pm, "pyramid...@gmail.com" wrote: > I am slightly confused with starting out > I just want to start with the initial index page You just need a line in your main urlconf (the one specified in your settings.py file) that maps directly to an HTML file in your

Re: First page access from another box, not 127.0.0.1

2009-01-12 Thread Karen Tracey
On Mon, Jan 12, 2009 at 11:15 AM, moiseyo wrote: > > I'm new with Django , and I'm follow the tutorial. > > I have install Django on my Linux box , and use My Windows box as a > development station - Web Browser , Editor , File copy etc. I use > SAMBA to access Linux

The First Page

2009-01-11 Thread pyramid...@gmail.com
Hello django users I am slightly confused with starting out I just want to start with the initial index page Do i need to create an app for that and then have views.py send me to the index.html template OR is this a bad way to do it how do u handle the url where they just type in the