Re: CharField vs ImageField for Logo

2017-09-26 Thread Andréas Kühne
Hi, great that you are getting how the media settings work. If you look at this page : https://docs.djangoproject.com/en/1.11/howto/static-files/ it explains what static files are and how they work. Basically, you use the static files template tags in your html templates and then you can use the

Re: POST method on localhost

2017-09-26 Thread Andréas Kühne
Hi! Yes that is realistic in the sense that it takes a couple of seconds to upload a 1GB file to localhost. It should take a small amount of time, because it is just copying the file (through django) to the directory you specified. However uploading a 1 GB file to a web server on the Internet isn

Re: CharField vs ImageField for Logo

2017-09-26 Thread tango ward
Got it. Thanks a lot!! On Tue, Sep 26, 2017 at 3:33 PM, Andréas Kühne wrote: > Hi, > > great that you are getting how the media settings work. > > If you look at this page : https://docs.djangoproject. > com/en/1.11/howto/static-files/ it explains what static files are and how > they work. Basi

Any django reusable app for outdoor & indoor location, GPS tracking?

2017-09-26 Thread 'Federico Capoano' via Django users
Hi everyone, before building my own reusable app all over again, I wanted to ask here if there is any reusable django app that does indoor location and or GPS tracking. I'm not looking for something full featured, but rather a starting point to which I can contribute to. Best regards Federico

Server side paging..How to sent the count of items??

2017-09-26 Thread Rakhee Menon
Hi , I was trying to do server side paging and wanted to send the totalcount of items along with itemPerPage..I have attached my code.Can anyone suggest how to do it?? Thanks in Advance. -- You received this message because you are subscribed to the Google Groups "Django users" group. To uns

Server Side Paging...How to get the totalcount of items?

2017-09-26 Thread Rakhee Menon
Hi , I was trying to do server side paging and wanted to send the totalcount of items along with itemPerPage..I have attached my code.Can anyone suggest how to do it?? Thanks in Advance. -- You received this message because you are subscribed to the Google Groups "Django users" group. To uns

Re: Server Side Paging...How to get the totalcount of items?

2017-09-26 Thread Daniel Roseman
On Tuesday, 26 September 2017 11:29:45 UTC+1, Rakhee Menon wrote: > > Hi , > > I was trying to do server side paging and wanted to send the totalcount of > items along with itemPerPage..I have attached my code.Can anyone suggest > how to do it?? > > Thanks in Advance. > Please don't post code as

Re: Need help formatting and incrementing a form in HTML

2017-09-26 Thread Daniel Roseman
On Monday, 25 September 2017 21:16:04 UTC+1, Zev wrote: > > So say I have data "a", "b", and "c". It would display itself as > > Object: a > > Object: b > > Object: c > > If I added d to the form, it would add > > Object: d > > What I'm hoping to do is add an increment to this so it displays itself

Solved Re: NoReverseMatch at /registration/password/change/

2017-09-26 Thread NoviceSortOf
Thanks for your reply. >>> Did you add all auth URLs to your URLconf? Thanks, we resolved the problems, by updating auth URLs as you mentioned and then also modifying the related registration html pages, and custom registration views. >> Also, please upgrade to at least Django 1.8 or (pref

Timezone error when I launch the admin login screen in 'Writing your first Django app'-tutorial

2017-09-26 Thread Lise
Hi, I'm trying to learn how to use Django through the 'Writing your first Django app'-tuorial. I have reached the step where you create a superuser and you need to start the server and go to the local domain and see the admin login screen. I don't see the admin login screen, I see a message th

Re: Timezone error when I launch the admin login screen in 'Writing your first Django app'-tutorial

2017-09-26 Thread Dan Tagg
Check the Django Settings file and set TIME_ZONE = 'UTC' or something in this list http://en.wikipedia.org/wiki/List_of_tz_zones_by_name Dan On 26 September 2017 at 14:30, Lise wrote: > Hi, > > I'm trying to learn how to use Django through the 'Writing your first > Django app'-tuorial. I hav

{% csrf_token %}

2017-09-26 Thread Alex Kleider
I'm using test driven development (going through Harry J.W. Percival's book) and have found that the following code fails because the template tag ( {% csrf_token %} ) is rendered by the home_page view function but not by the django.template.loader.render_to_string function (and so the assertEq

Re: POST method on localhost

2017-09-26 Thread Allan
Andreas my supervisor has asked me to determine the feasibility of using different frameworks for our web application. Django seems nice to work with mainly because it is in Python and that gives us a lot. Will different frameworks result in a huge difference in aspects such as data upload?

Re: POST method on localhost

2017-09-26 Thread Andréas Kühne
Hi again, Different frameworks will probably not affect your upload speed. The web server (regardless of framework) is not the main problem, but the network speed, so regardless of which framework you choose in the end, it won't be the bottleneck. The thing is your web server is probably not even

Re: POST method on localhost

2017-09-26 Thread Allan
Would you have any recommendations on where to get started with this? We were originally making a desktop application, but plans have shifted and I'm not very knowledgeable about everything web. Allan On Tuesday, 26 September 2017 13:35:08 UTC-7, Andréas Kühne wrote: > > Hi again, > > Differ

Re: POST method on localhost

2017-09-26 Thread Andréas Kühne
I think most frameworks are pretty much the same today. What you should be looking for is something that you feel comfortable with. If you have been programming in java - look for a java framework. If you have been programming in python - look for a python framework. That being said, I personally

Test runner returning error with multi file models

2017-09-26 Thread Jezeniel Zapanta
I have an app with multi-file models myapp/ |- models/ |- __init__,py |- user.py When I am running python manage.py test it returns: RuntimeError: Conflicting 'user_groups' models in application... But when I use only a single `models.py` file it works. Is this a bug? or am i

Re: Adding data via admin not visible on html template until restart server (python manage.py runserver)

2017-09-26 Thread cnn . marketing
Any update on this? I have the similar issue - I login to my demo Django http://127.0.0.1:8000/admin/, and update a field name 'name' in 'demo'. The field 'name' is still showing the old data by using url (restful api) http://127.0.0.1:8000/demo. I have to use http://127.0.0.1:8000/admin/demo

Error when running tests while using multi-file models

2017-09-26 Thread Jezeniel Zapanta
I am using multi-file models on my app: Example file structure: app/ |- models/ |- __init__.py |- user.py When I run `python manage.py test` it returns: RuntimeError: Conflicting 'user_groups' models in application... But when I join then into one file (models.py) it works

Updating data via admin not visible on restful api without admin specified in url until restart server

2017-09-26 Thread cnn . marketing
After login to my account via http://127.0.0.1:8000/admin, I update the data in field 'name' for 'demo'. I can see the updated data for 'name' by using http://127.0.0.1:8000/admin/demo. However, the field 'name' is showing the old data via url (restful api) http://127.0.0.1:8000/demo (NOTICE,

Re: Updating data via admin not visible on restful api without admin specified in url until restart server

2017-09-26 Thread Xavier Ordoquy
Hi, You likely have an issue with scope in your code. Something similar to https://stackoverflow.com/questions/15395521/django-form-field-will-not-update-without-server-reset-instantiating-a-clas