balance brought forward

2018-05-24 Thread sum abiut
Hi, I am working on an accounting app and i needed direction on how to go about calculating the balance brought for a particular day. What i want to accomplish is being able to display the balance brought forward when the user select a date. i want to be able to display the transaction that happen

Re: Starting a poll

2018-05-24 Thread James Farris
If you open the app once the server is started by going to 127.0.0.1:8000 is it loading the website or are you getting a 404 error in the browser? I see the favicon 404 error all the time, but it doesn’t halt my site. It’s just django looking for a favicon. That shouldn’t break anything. Another

Re: Multisite strategy

2018-05-24 Thread Anthony Petrillo
Thanks Melvyn. That helps a lot. Anthony On Thu, May 24, 2018 at 1:18 PM, Melvyn Sopacua wrote: > On donderdag 24 mei 2018 16:39:34 CEST Anthony Petrillo wrote: > > > > > So I was thinking that was an option so that I could build one site and > > > then have translations into other languages so

Re: Temporal table in Django 1.6

2018-05-24 Thread 'Anthony Flury' via Django users
Although Django doesn't support the Temporal tables directly - it gives you all the tools you need to create one. And there are some installable extensions :     django-temporal-models : https://github.com/TyumenGortrans/django-temporal-models     You should be able to install it by        

Re: Starting a poll

2018-05-24 Thread Jorge Gimeno
On Thu, May 24, 2018, 10:06 AM Caleb Bryson wrote: > So I am follow the instructions on the django site to make a poll. I am at > the current step where you run the server and everything went fine when i > typed in the command. But now it is just there at saying "GET /favicon.ico > HTTP/1.1" 404

Re: Issue with Django migrate - fine with 2.7x python, but error with 3.6.4?

2018-05-24 Thread Benjamin Schollnick
Melvyn, First, I'm sorry if this come off a bit snarky, it's been a long day... I want to say Thank you for your assistance, and I appreciate the help, even though I took potentially the easy way out... But squashing the migrations, made me realize that the root cause, may have been an earlie

Re: Public Django administrative database

2018-05-24 Thread Daniel Chimeno
Thanks all for your answer, the OS-Open seems to work well. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to

Re: Passing values from Python to Javascript

2018-05-24 Thread Cuneyt Mertayak
It is going to be like following. In HTML (doesn't have to be div of course any HTML tag can get data attribute: ... Then in JS: var dataElement = document.getElementById('backend-to-js-name'); var name = dataElement.dataset.name; console.log(name); Check it out "data" attributes here: https:

Re: help me out

2018-05-24 Thread Umar Kambala
Thanks very much, will try it n get back to u On May 24, 2018 4:56 PM, "Melvyn Sopacua" wrote: > On donderdag 24 mei 2018 17:28:53 CEST Umar Kambala wrote: > > It is located in mysite/polls/template/polls/ > > It should be in mysite/polls/templates/polls/ > > Note: templates with an s, not templa

Re: Open Sqlite database file directly in django

2018-05-24 Thread Sourabh Jaiswal
Hi Eric, Thank for your reply. I have implemented the table creation using context data as you suggested. And on web page I am using Datatables to create pages. How ever with this approach whole table data is sent to browser while rendering the page. Which is taking time as expected. I am very

Re: Open Sqlite database file directly in django

2018-05-24 Thread Sourabh Jaiswal
Hi Eric, Thank for your reply. I have implemented the table creation using context data as you suggested. And on web page I am using Datatables to create pages. How ever with this approach while table data is sent to browser while rendering the page. Which is taking time as expected. I am very

Re: Multisite strategy

2018-05-24 Thread Melvyn Sopacua
On donderdag 24 mei 2018 16:39:34 CEST Anthony Petrillo wrote: > So I was thinking that was an option so that I could build one site and > then have translations into other languages so when the user picked a > language everything will switch to that language. Is this a naive > assumption? A bit.

Starting a poll

2018-05-24 Thread Caleb Bryson
So I am follow the instructions on the django site to make a poll. I am at the current step where you run the server and everything went fine when i typed in the command. But now it is just there at saying "GET /favicon.ico HTTP/1.1" 404 1977 on the last command line. I was wondering should i wa

Re: help me out

2018-05-24 Thread Melvyn Sopacua
On donderdag 24 mei 2018 17:28:53 CEST Umar Kambala wrote: > It is located in mysite/polls/template/polls/ It should be in mysite/polls/templates/polls/ Note: templates with an s, not template. -- Melvyn Sopacua -- You received this message because you are subscribed to the Google Groups "Dj

In Django HTML templets How to connect with jquery and ajex

2018-05-24 Thread subhani shaik
Hi... I am creating one HTML table template in Django.But my question is how to connect or work with my buttons help of jquery, and ajex. methodology.and return getting the server message.please help me. -- You received this message because you are subscribed to the Google Groups "Django use

Re: help me out

2018-05-24 Thread Umar Kambala
It is located in mysite/polls/template/polls/ On May 24, 2018 2:41 PM, "Gerardo Palazuelos" wrote: Hi Your problem is this (quiten in last part of the error stack): File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\ lib\site-packages\django\template\loader.py", line 47, in select_tem

Re: help me out

2018-05-24 Thread Gerardo Palazuelos
Hi Your problem is this (quiten in last part of the error stack): File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\loader.py", line 47, in select_template raise TemplateDoesNotExist(', '.join(template_name_list), chain=chain) django.template.exc

Re: Multisite strategy

2018-05-24 Thread Anthony Petrillo
I'm new at this Django stuff, so this is more of a question than a suggestion. I keep seeing a references to translating. I found in the manual the following: 3.15 Internationalization and localization 3.15.1 Translation Overview In order to make a Django project translatable, you have to add a

Re: Issue with Django migrate - fine with 2.7x python, but error with 3.6.4?

2018-05-24 Thread Umar Kambala
please help me, this is the error mgs am been getting whenever i run my manage.py runserver Not Found: / [24/May/2018 14:16:40] "GET / HTTP/1.1" 404 2027 Internal Server Error: /polls/ Traceback (most recent call last): File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-pack

help me out

2018-05-24 Thread Umar Kambala
please help me, this is the error mgs am been getting whenever i run my manage.py runserver Not Found: / [24/May/2018 14:16:40] "GET / HTTP/1.1" 404 2027 Internal Server Error: /polls/ Traceback (most recent call last): File "C:\Users\Admin\AppData\Local\Programs\Python\Python36-32\lib\site-pac

Re: Passing values from Python to Javascript

2018-05-24 Thread Akshay Gaur
Hi Cuneyt, How do you add the data fields and their values to tags generated by python? For example, how would you add a data field to something generated by {{ form.name }}? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Passing values from Python to Javascript

2018-05-24 Thread Akshay Gaur
Hi Cutest, How do you add the data fields and their values to tags generated by python? For example, how would you add a data field to something generated by {{ form.name }}? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Open Sqlite database file directly in django

2018-05-24 Thread Vinicius Assef
You can use Django to access Sqlite. On 24 May 2018 at 03:22, Sourabh Jaiswal wrote: > Hi, > > Thanks a Lot for your reply. > > Using standard python lib you are saying that I should send the data from > view to template render using context dictionary.. right? > > But in my case data can be huge

Re: Open Sqlite database file directly in django

2018-05-24 Thread PASCUAL Eric
Hi, The content of the context dict can be anything, including of course values read from the database thanks to the sqlite3 lib. What Django generic views working with templates do is transfering for you the object field values to context entries and also automating the creation of form field

Re: ValidationError: ManagementForm data is missing or has been tampered with

2018-05-24 Thread Dane Kennedy
I'm getting the same thing, except it's 2018 >:/. I'm waiting to hear from users if they're using IE, but do you think there's any chance this is still a problem? On Tuesday, 23 February 2010 06:40:05 UTC+2, DrMeers wrote: > > I have the same problem -- only intermittently, only IE, can't put my

Re: Issue with Django migrate - fine with 2.7x python, but error with 3.6.4?

2018-05-24 Thread Melvyn Sopacua
On donderdag 24 mei 2018 00:31:57 CEST Benjamin Schollnick wrote: > Okay, squashing seems to have resolved this issue... Did you find any issues with the documentation on squashing? > Seems a bit voodoo-ish, but it worked. Any suggestions for preventing this > in the future would be nice! It's

Re:

2018-05-24 Thread Umar Kambala
this my error TemplateDoesNotExist at /polls/1/ polls/detail.html Request Method: GET Request URL: http://127.0.0.1:8000/polls/1/ Django Version: 2.0.5 Exception Type: TemplateDoesNotExist Exception Value: polls/detail.html Exception Location: C:\Users\Admin\AppData\Local\Programs\Python\Pyth

Re:

2018-05-24 Thread Umar Kambala
I change the template settings to this TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, 'templates'), ], 'APP_DIRS': True, ...More code here... On May 23, 2018 8:54 PM, "'Anthony Flury' via Django users" < django-users@googlegroups.com>

Re:

2018-05-24 Thread Umar Kambala
Thanks for the help, I made the corrections n I still gets error AttributeError: module 'polls.views' has no attribute 'index'. On May 23, 2018 1:46 PM, "James Farris" wrote: > I assume you mean TemplateDoesNotExist and I also assume you have created > a templates folder in your project and have