Re: calling html file from within javascript

2015-12-13 Thread Gergely Polonkai
Sorry, I have pressed Send too soon… As you see, using document.write is a very bad idea. However, freezing is not mentioned in that document. What does freezing mean in this case? Are you sure it's this code that gets executed and freezes? Also, what exactly do you want to achieve? Best, Gergel

Re: calling html file from within javascript

2015-12-13 Thread Gergely Polonkai
Hello, although this is barelyDjango related, here are some notes. >From MDN[1]: Note: as* document.write* writes to the document *stream*, calling *document.write* on a closed (loaded) document automatically calls *document.open* which will clear the document

calling html file from within javascript

2015-12-13 Thread Gary Roach
I use javascript in my main.html (top template) to control the access to several buttons. The buttons call a javascript function. This setup works exactly as I wish except the buttons still don't really do anything. I need to have each button load a different template. The pertinent script is:

Re: git exclude files

2015-12-13 Thread Gary Roach
Sorry Scott but don't think that venv and pyvenv are the same. I use venv. There may very well be a way to do as you say but I'm down the road a bit at this point and really don't want to start screwing around with my whole project structure. I just need to exclude the aforementioned files and

Re: not clear about the name= part of url rooting

2015-12-13 Thread knbk
Django allows you to reconstruct urls with the reverse() function and {% url %} template tag. You can reverse the url for a view by passing the view function itself, but this is not very practical. By setting a name for a view, you can reverse the url by referencing this name instead. This allow

Re: git exclude files

2015-12-13 Thread Scot Hacker
On Sunday, December 13, 2015 at 8:17:15 AM UTC-8, Gary Roach wrote: > > As I mentioned earlier, venv and virtualenv do not work the same. There > may be a way to force venv to put the files in a different place but the > default is to put them in the directory just above the start of the project

not clear about the name= part of url rooting

2015-12-13 Thread kk
hello all, I was going through the basic tutorial for django 1.8 I see in the 3rd part on views this line. url(r'^(?P[0-9]+)/$', views.details, name='detail'), I have not understood the name = 'details' part? is 'details' a parameter that will have a input value? I am confused because we have alre

Re: git exclude files

2015-12-13 Thread Gary Roach
As I mentioned earlier, venv and virtualenv do not work the same. There may be a way to force venv to put the files in a different place but the default is to put them in the directory just above the start of the project not in a separate .virtualenv file. So a different directory is not an op

Re: Getting 500 error on ASO

2015-12-13 Thread Jack Maxwell
I've got the same problem to configure my Shared Host on QHoster, using fastCGI. I didn't find a valid tutorial so far. my config: /home/username/ | /public_html/.htaccess | /index.fcgi |-/mydjangoVirtualEnv |-/MyDjangoProject_SR

Django decision for tour reservation database

2015-12-13 Thread Tourmaster
I'm a tour operator scheduling 3 trips a day. Currently I manage my bookings by phone using MS Access and have a reservation service linked to my wordpress site who sends me reports by email. I want to put a single database on a server available to the office, outside agents and customers who

Re: git exclude files

2015-12-13 Thread graeme
On Saturday, December 12, 2015 at 2:38:29 AM UTC+5:30, Gary Roach wrote: > > /root/archive/lib files in the git repository or should they be > excluded. If the need to be excluded, how. > Definitely exclude it. There are lots of things that may make it break on a different system. As another