Re: Having trouble loading up my poll app

2018-05-28 Thread Caleb Bryson
P.S.: This is my first attempt at setting up a website using django so my code may look a little ruff. here is my urls.py from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('/', views.detail, name='detail'), path('/results/', views.result

Re: Having trouble loading up my poll app

2018-05-28 Thread 김영찬
When you receive that error message "Template does not exist", most of time you are able to find errors in URL and TEMPLATE. Please show us your urls.py and detail.html and result.html :) 2018-05-29 10:45 GMT+09:00 Caleb Bryson : > Hey guys, I am on part 4 of writing your first django app. And I

Re: Authenticated users should only be able to see their own data

2018-05-28 Thread Mike Dewhirst
On 29/05/2018 11:44 AM, Mike Dewhirst wrote: On 29/05/2018 11:04 AM, Dylan Moreland wrote: Hello, I'm building an employee performance tracker for my company, and I'd like each employee to be able to view their own infractions (late to a shift, missed punch, etc.) and no one else's, obviously

Having trouble loading up my poll app

2018-05-28 Thread Caleb Bryson
Hey guys, I am on part 4 of writing your first django app. And I am stuck at the part where it says this "Now, go to /polls/1/ in your browser and vote in the question. You should see a results page that gets updated each time you vote. If you submit the form without having chosen a choice, you

Re: Authenticated users should only be able to see their own data

2018-05-28 Thread Mike Dewhirst
On 29/05/2018 11:04 AM, Dylan Moreland wrote: Hello, I'm building an employee performance tracker for my company, and I'd like each employee to be able to view their own infractions (late to a shift, missed punch, etc.) and no one else's, obviously. I plan to use the built-in Django admin int

Authenticated users should only be able to see their own data

2018-05-28 Thread Dylan Moreland
Hello, I'm building an employee performance tracker for my company, and I'd like each employee to be able to view their own infractions (late to a shift, missed punch, etc.) and no one else's, obviously. I plan to use the built-in Django admin interface to allow HR to modify the database as ne

Re: money field question

2018-05-28 Thread Mike Dewhirst
On 29/05/2018 6:06 AM, Simon McConnell wrote: On Mon., 28 May 2018, 7:50 pm Mike Dewhirst, > wrote: On 24/05/2018 12:03 PM, Mike Dewhirst wrote: > On 23/05/2018 12:31 PM, Simon McConnell wrote: >> I'm in a similar boat at the moment. There >> is h

Re: money field question

2018-05-28 Thread Mike Dewhirst
On 29/05/2018 6:06 AM, Simon McConnell wrote: https://github.com/limist/py-moneyed/blob/master/moneyed/localization.py only has the localisation configured for a handful of currencies, and not our precious AUD :). The shortest party would be adding them all in or doing https://github.com/limi

Re: money field question

2018-05-28 Thread Simon McConnell
On Mon., 28 May 2018, 7:50 pm Mike Dewhirst, wrote: > On 24/05/2018 12:03 PM, Mike Dewhirst wrote: > > On 23/05/2018 12:31 PM, Simon McConnell wrote: > >> I'm in a similar boat at the moment. There > >> is https://github.com/vimeo/py-money too. > > > > I looked at that but it probably won't ever

Definitive (or any) guide to testing Django admin actions with intermediate pages?

2018-05-28 Thread Derek
Looking for some help with a persistent problem. While there are many examples scattered across the internet about how to incorporate intermediate pages (typically with a form involved) into a custom Django admin action, I have not been able to find a complete and definitive guide to how to create

Re: main page have stopped work after creating poll app

2018-05-28 Thread Florian Schweikert
It seems you don't have a "main" page. The page you saw was a placeholder starting page if there are no other urls defined. If you want to deliver something at / you have to add it to urls.py PS: pasting screenshots of code is a very bad habit. On 26/05/18 14:46, Dmitry Sobolev wrote:

Re: main page have stopped work after creating poll app

2018-05-28 Thread Julio Biason
Hi Dmitry, Define "the main address stop working"? Do you mean it won't accept any other requests? You should probably check the command line where you started "manage.py runserver". It should display a backtrace pointing to anything that went wrong. On Sat, May 26, 2018 at 5:43 AM, Dmitry Sobol

Re: money field question

2018-05-28 Thread Mike Dewhirst
On 24/05/2018 12:03 PM, Mike Dewhirst wrote: On 23/05/2018 12:31 PM, Simon McConnell wrote: I'm in a similar boat at the moment. There is https://github.com/vimeo/py-money too. I looked at that but it probably won't ever support exchange rates. Not sure yet if that is a show stopper because m