Re: I need help with saving data to django database.

2022-08-17 Thread Anh Nguyen
Problem is you try to use sth you can’t control it. You should not modify admin page. Try to create a new one as your knowledge. That way keep you learn and stay away unpredictable issues. On Wed, 17 Aug 2022 at 20:02 Paul Kudla (SCOM.CA Internet Services Inc.) < p...@scom.ca> wrote: > > ok i had

Re: I need help with saving data to django database.

2022-08-17 Thread Paul Kudla (SCOM.CA Internet Services Inc.)
ok i had a hudge problem when writing my invoice system in general you need to over ride the save defination in the admin and models.py files this was never clearly documented in django. I use inlines so the code gets really complicated really quickly i have given my code you will need to

I need help with saving data to django database.

2022-08-16 Thread Viando Donwasta
Hi, May I get help with this project? I am new to Django. Below is my view and model for your review. class Invoice(models.Model): InvoiceNo = ShortUUIDField(length=16, prefix="GN_", alphabet="1234567890", primary_key=True, ) InvoiceDate = models.DateFiel

Re: Re : Need help in django database related

2021-10-14 Thread Richard Dushime
i Think using Django u will create models then register them in admin, for saving data /registration u will create a form that will be posting data in database may be u can add in an email scripts if u want to always be aware of who has registered for an event On Wed, Oct 13, 2021 at 8:37 PM

Re: Re : Need help in django database related

2021-10-14 Thread MR INDIA
Maybe you need to learn db relationships in django models and forms, Learn about db : https://www.webforefront.com/django/setuprelationshipsdjangomodels.html And inspect source code of this project: https://github.com/sajib1066/django-event-management Hope this helps, A fellow django devel

Re : Need help in django database related

2021-10-13 Thread Avi shah
I want to build an platform where admin can add events and I want end users to register for that event , so how do I save the data/registration of the user for that particular event , how can i create dynamic tables like 1 table for 1 event or is there some other logic behind it? Thanks in advance

Re: i have a picture field in my model that was not stored properly in django database and i can't retrive that picture

2021-07-07 Thread dapsyn
Try check your model On Wednesday, July 7, 2021 at 3:07:55 PM UTC+1 mohansar...@gmail.com wrote: > please check below view Function -- 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 i

Re: i have a picture field in my model that was not stored properly in django database and i can't retrive that picture

2021-07-07 Thread Lalit Suthar
this can help https://simpleisbetterthancomplex.com/tutorial/2016/08/01/how-to-upload-files-with-django.html On Wed, 7 Jul 2021 at 20:25, DJANGO DEVELOPER wrote: > you're doing well but it is not the right way o ask the question. you need > to describe all of your problem and what you have done

Re: i have a picture field in my model that was not stored properly in django database and i can't retrive that picture

2021-07-07 Thread DJANGO DEVELOPER
you're doing well but it is not the right way o ask the question. you need to describe all of your problem and what you have done to resolve it, then may be someone will be able to help you. On Wed, Jul 7, 2021 at 7:07 PM Hugh Frost wrote: > please check below view Function > > -- > You received

i have a picture field in my model that was not stored properly in django database and i can't retrive that picture

2021-07-07 Thread Hugh Frost
please check below view Function -- 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 view this discussion on the web vi

Re: Django database problem

2018-08-27 Thread Mikko Meronen
Yes it seems that I can influence to the 'jumps' with my management command. First my bot went through tens of items per loop, however when I changed the bot to check only 2 items per loop, the 'jumps' got smaller. So even though the table rows do not accrue (nothing is added) when no new items are

Re: Django database problem

2018-08-27 Thread Andréas Kühne
I have looked at this several times myself. :-) Regards, Andréas Den mån 27 aug. 2018 kl 13:33 skrev Jason : > oh, good catch. I didn't think of that, but you're right. > > > https://stackoverflow.com/questions/449346/mysql-auto-increment-does-not-rollback > > On Monday, August 27, 2018 at 3:

Re: Django database problem

2018-08-27 Thread Jason
oh, good catch. I didn't think of that, but you're right. https://stackoverflow.com/questions/449346/mysql-auto-increment-does-not-rollback On Monday, August 27, 2018 at 3:50:28 AM UTC-4, Andréas Kühne wrote: > > The management command could be wrapped within a transaction, this would > then in

Re: Django database problem

2018-08-27 Thread Andréas Kühne
The management command could be wrapped within a transaction, this would then in the database create a lot of models, but if the transaction fails - the rollback will not reset the database id. Regards, Andréas Den sön 26 aug. 2018 kl 12:29 skrev Mikko Meronen < mikkovillemero...@gmail.com>: >

Re: Django database problem

2018-08-26 Thread Jason
yeah, there is a limit, and its set by the data type you use for the id field. by default, id is set to IntegerField which has a maximum value of 2147483647 sounds like the issue with the ids jumping aro

Re: Django database problem

2018-08-26 Thread Mikko Meronen
Hi, Thanks for advice ^^ I have one new concern. Is there a limit for for Django model IDs? Now I have automated the data insert with python code loop, but the ID-number is not consecutive. It jumps for example from ...56 to 571... and from ...587 to 3763... and so forth. Do you know why it is

Re: Django Database Table Front End Editing

2018-08-22 Thread Mikhailo Keda
Check the documentation: https://docs.djangoproject.com/en/2.1/ref/databases/#connecting-to-the-database https://docs.djangoproject.com/en/2.1/topics/forms/ https://docs.djangoproject.com/en/2.1/ref/templates/ -- You received this message because you are subscribed to the Google Groups "Django u

Django Database Table Front End Editing

2018-08-22 Thread Sandeep Khatri
Hi, I am using a django framework and wants to fetch data from mysql database table. I also wants user to edit and update table column data at ui/ frontend. Please help me out with this issue. Thanks and Regards, Sandeep Khatri -- You received this message because you are subscribed to the G

Re: Django database problem

2018-08-20 Thread Jani Tiainen
Hi, Instead of doing everything by hand I would recommend doing a custom management command in Django. Because management commands live inside Django ecosystem you get full benefits of Django. Migrations to setup database tables from model definitions. Models and ORM to interact with database. (M

Re: Django database problem

2018-08-20 Thread Mikko Meronen
Hi and thanks for your help. I have tried postgress and now I have a problem using it. Here's my code following an error. I appreciate any help. def do(): x = 1 while x == 1: create_table() print('finding data') find_data() time.sleep(120) def create_table

Re: Django database problem

2018-08-17 Thread Mikhailo Keda
You could generate models from sqlite database - https://docs.djangoproject.com/en/2.1/howto/legacy-databases/ Than switch to PostgresQL -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fr

Re: Django database problem

2018-08-17 Thread Okware Aldo
Mikko, Check out this link below, it will help you understand how to connect you Django project to any DB manager. https://docs.djangoproject.com/en/2.1/intro/tutorial02/ On Fri, Aug 17, 2018 at 6:55 PM Mikko Meronen wrote: > Hi, > > I'm quite new with django and python and I wish someone coul

Re: Django database problem

2018-08-17 Thread Anirudh Jain
You will have to create a database on your system first (it is better to use mysql instead of sqlite) and then run commands :- 1. python manage.py makemigrations 2. python manage.py migrate Also you will have to create forms (forms.ModelForm or forms.Forms) for taking input. On Fri, 17 Aug 2018,

Django database problem

2018-08-17 Thread Mikko Meronen
Hi, I'm quite new with django and python and I wish someone could help me. I'm building a webpage where my python program/bot collects data from webpages. Is there a way that I can use my python program to store the data to django's database? At the moment when I run my program, I collect the d

Re: Updating django database

2018-06-03 Thread liujiawei . jevade
o guys, > Sorry about the above no subject mail > I am getting a json string(json_string) from frontend. How can we update > the django database in views.py. Below is my models.py. > > models.py > > class Patient(models.Model): > patient_id = models.CharField(pr

Re: Updating django database

2018-06-02 Thread 'Anthony Flury' via Django users
subject mail I am getting a json string(json_string) from frontend. How can we update the django database in views.py. Below is my models.py. models.py class Patient(models.Model):     patient_id = models.CharField(primary_key=True, max_length=200)     patient_age = models.CharField(max_length=

Re: Updating django database

2018-06-02 Thread Albin Antony
Can the first be done if there is a relation between the models? On Sat, Jun 2, 2018 at 7:49 PM, Melvyn Sopacua wrote: > On zaterdag 2 juni 2018 15:12:08 CEST Albin Antony wrote: > > For updating multiple models at the same time, Should we create multiple > > instances? > > Multiple models (Pat

Re: Updating django database

2018-06-02 Thread Melvyn Sopacua
On zaterdag 2 juni 2018 15:12:08 CEST Albin Antony wrote: > For updating multiple models at the same time, Should we create multiple > instances? Multiple models (Patient and Medication) or multiple instances of the same model (more than one Patient)? The later can be done with a single manager

Re: Updating django database

2018-06-02 Thread Albin Antony
> > > > On 29/05/18 12:37, Albin Antony wrote: > >> Hello guys, >> Sorry about the above no subject mail >> I am getting a json string(json_string) from frontend. How can we update >> the django database in views.py. Below is my models.py. >> models.py >&g

Re: Updating django database

2018-06-02 Thread 'Anthony Flury' via Django users
, Albin Antony wrote: Hello guys, Sorry about the above no subject mail I am getting a json string(json_string) from frontend. How can we update the django database in views.py. Below is my models.py. models.py class Patient(models.Model):     patient_id = models.CharField(primary_k

Updating django database

2018-05-29 Thread Albin Antony
Hello guys, Sorry about the above no subject mail I am getting a json string(json_string) from frontend. How can we update the django database in views.py. Below is my models.py. models.py class Patient(models.Model): patient_id = models.CharField(primary_key=True, max_length=200

Re: Uplaod execl file to populate django database

2017-03-13 Thread Thiago Parolin
I change my excel to csv file and populate db 2017-03-13 8:24 GMT-03:00 Rafael E. Ferrero : > 2017-03-13 3:51 GMT-03:00 JJEMBA KENNETH : > >> Hello guyz, >> Can any one help with this. I want to upload an excel file with data and >> i use this data to populate the database. >> >> -- >> Jjemba ken

Re: Uplaod execl file to populate django database

2017-03-13 Thread Rafael E. Ferrero
2017-03-13 3:51 GMT-03:00 JJEMBA KENNETH : > Hello guyz, > Can any one help with this. I want to upload an excel file with data and i > use this data to populate the database. > > -- > Jjemba kenneth > > -- > I used this https://github.com/pyexcel/django-excel -- You received this message becau

Re: Uplaod execl file to populate django database

2017-03-13 Thread Shawn Milochik
1. Write code that puts data into your models. Do the Django tutorial if you don't know how. 2. Write code that reads data out of your​ Excel file using the appropriate library, easily found on pypi. 3. Use them together. -- You received this message because you are subscribed to the Google Gro

Uplaod execl file to populate django database

2017-03-12 Thread JJEMBA KENNETH
Hello guyz, Can any one help with this. I want to upload an excel file with data and i use this data to populate the database. -- Jjemba kenneth -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Entering initial data into django database

2016-03-20 Thread Lawrence Muriuki
Ok..thanks..it worked...Created a script to create the fixture file and update it with every record...what a community this is! On Sunday, March 20, 2016 at 12:50:30 PM UTC-7, ludovic coues wrote: > > First, you should create a fixture file with some sample data. Two > entry, just like in the do

Re: Entering initial data into django database

2016-03-20 Thread ludovic coues
First, you should create a fixture file with some sample data. Two entry, just like in the documentation is good. This way, you know you have a working fixture file. Then, you write a python function which take a list of bet and output a fixture file just like the exemple you have done. Finally,

Re: Entering initial data into django database

2016-03-20 Thread Lawrence Muriuki
Thanks ludovic, here is my code for the scraper.. from .models import Betting import re import requests import urllib from bs4 import BeautifulSoup urls= "https://sms.betyetu.co.ke/tomorrow.html"; htmlfile = urllib.urlopen(urls) htmltext = htmlfile.read() soup = BeautifulSoup(htmltext, "h

Re: Entering initial data into django database

2016-03-20 Thread ludovic coues
howto/initial-data/ 2016-03-20 19:05 GMT+01:00 Lawrence Muriuki : > Hi All, > > I have built a web scraper to scrape a website and get all match fixtures > for a particular day. Wanted to know how to insert that initial data into > django database and where that code should live..I ha

Entering initial data into django database

2016-03-20 Thread Lawrence Muriuki
Hi All, I have built a web scraper to scrape a website and get all match fixtures for a particular day. Wanted to know how to insert that initial data into django database and where that code should live..I have currently put the code in init.py but it looks and sounds wrong according to a

Re: Django + Database Connections

2014-11-13 Thread Russell Keith-Magee
ng is correct the Django admin interface uses the model > layer? If so while learning Django I remember reading (although I can't > find the link now) that if you use a model that doesn't use Django database > layer the admin code doesn't work? if this is the case why so? >

Re: Django + Database Connections

2014-11-12 Thread Edward Armes
gt;> half-baked idea, I'm specifically looking how to handle database operations >> that have a significant return time by marrying asynchronous environments >> with synchronous ones. While it may be more efficant to use a non-Django >> database handler. For now I want to look i

Re: Django + Database Connections

2014-11-12 Thread Edward Armes
7;t find the link now) that if you use a model that doesn't use Django database layer the admin code doesn't work? if this is the case why so? - Secondly would I be correct in thinking that by having asynchronous models it would break the default forms and views lthat are included ike t

Re: Django + Database Connections

2014-11-11 Thread Kakar Nyori
ngo that use the ORM's to get data from the database >> itself). >> >> If a reason is required without going into detail on my current >> half-baked idea, I'm specifically looking how to handle database operations >> that have a significant return time

Re: Django + Database Connections

2014-11-11 Thread Russell Keith-Magee
I'm specifically looking how to handle database operations that have > a significant return time by marrying asynchronous environments with > synchronous ones. While it may be more efficant to use a non-Django > database handler. For now I want to look into using the Django framework >

Django + Database Connections

2014-11-10 Thread Edward Armes
arrying asynchronous environments with synchronous ones. While it may be more efficant to use a non-Django database handler. For now I want to look into using the Django framework without needing additional imports. Many thanks in advance Edward -- You received this message because you are subscribed

Django database layer + twisted deferred

2014-11-10 Thread Edward Armes
arrying asynchronous environments with synchronous ones. While it may be more efficant to use a non-Django database handler. For now I want to look into using the Django framework without needing additional imports. Many thanks in advance Edward -- You received this message because you are subscribed

Re: running script in django database

2014-07-30 Thread alghafli
ly-To: django-users@googlegroups.com Subject: running script in django database Hello, I made a library application using django 1.6. currently I only need to populate the database. at the beginning, it is easier to write the information in a csv file and import it using a script. the script is running

Re: running script in django database

2014-07-30 Thread aRkadeFR
Django documentation. > > HTH > > Jirka > > -Original Message- > From: alghafli > Sender: django-users@googlegroups.com > Date: Wed, 30 Jul 2014 07:02:59 > To: > Reply-To: django-users@googlegroups.com > Subject: running script in django database >

Re: running script in django database

2014-07-30 Thread jirka . vejrazka
Subject: running script in django database Hello, I made a library application using django 1.6. currently I only need to populate the database. at the beginning, it is easier to write the information in a csv file and import it using a script. the script is running fine if I use manage.py shell and

running script in django database

2014-07-29 Thread alghafli
Hello, I made a library application using django 1.6. currently I only need to populate the database. at the beginning, it is easier to write the information in a csv file and import it using a script. the script is running fine if I use manage.py shell and import the necessary file and call

Re: Django Database Switching Issue

2014-07-14 Thread G Z
I solved it thanks for all your help though. On Monday, July 14, 2014 9:44:31 AM UTC-6, G Z wrote: > > Thomas, >> > > We are using an oracle database setup, we have a development database and > a production database, the production database is for billing. > The databases have the sane TNS resolv

Re: Django Database Switching Issue

2014-07-14 Thread G Z
> > Thomas, > We are using an oracle database setup, we have a development database and a production database, the production database is for billing. The databases have the sane TNS resolver name of DB1. To test that it was using the correct settings.py file I removed the database information

Re: Django Database Switching Issue

2014-07-11 Thread Thomas Lockhart
On 7/11/14 11:30 AM, G Z wrote: Thomas, I have no cache setup, Django is all set to default right now there is no local_settings file I have actually changed every settings file that exist for django to match my production db yet still the wrong data. Well, you will have to give more details o

Re: Django Database Switching Issue

2014-07-11 Thread G Z
Thomas, I have no cache setup, Django is all set to default right now there is no local_settings file I have actually changed every settings file that exist for django to match my production db yet still the wrong data. On Friday, July 11, 2014 10:30:23 AM UTC-6, Thomas wrote: > > On 7/11/14 9:

Re: Django Database Switching Issue

2014-07-11 Thread Thomas Lockhart
On 7/11/14 9:27 AM, G Z wrote: So I tracked down an issue, whenever I change my database from development to production which have the same exact schema it still uses the data from development although my settings.py file is set to the production database and it even swtiches the user I have to

Django Database Switching Issue

2014-07-11 Thread G Z
So I tracked down an issue, whenever I change my database from development to production which have the same exact schema it still uses the data from development although my settings.py file is set to the production database and it even swtiches the user I have to log in with to the one associat

Re: Old Django database on Ubuntu

2014-07-06 Thread Lachlan Musicman
Most likely the info will be stored in a DB behind Django - MySQL for instance. If you look in /setting.py you should see the relevant section "Databases" You can then access the data in the database using that user/password. If it's mysql, you can try phpmyadmin if you can't get the Django work

Old Django database on Ubuntu

2014-07-06 Thread Janelle O'Dea
Hi all, At work we have an old Django app/database running on Ubuntu. The creator isn't still around. Can we still get this information somehow? In the little work I've done with Django, it seems the content would be password-protected. Even if I had his passwords, though, I don't know how to

Re: Massive import in Django database

2014-06-11 Thread Erik Cederstrand
Den 11/06/2014 kl. 15.14 skrev John Carlo : > Hello everybody, > > I've fallen in love with Django two years ago and I've been using it for my > job projects. In the past I found very useful information in this group, so a > big thank you guys! > > I have a little doubt. > I have to import in

Re: Re: Massive import in Django database

2014-06-11 Thread moqianc...@gmail.com
Hi, John: Sorry! The pseudo code write by me is not correct, and It's slow.. I will come back tonight. With Regards, Qiancong,Mo From: moqianc...@gmail.com Date: 2014-06-11 23:47 To: django-users Subject: Re: Massive import in Django database Hi, John: I think your code is right, e

Re: Massive import in Django database

2014-06-11 Thread moqianc...@gmail.com
r related_doc from database, the speed should speed up. With Regards. moqianc...@gmail.com From: John Carlo Date: 2014-06-11 21:14 To: django-users Subject: Massive import in Django database Hello everybody, I've fallen in love with Django two years ago and I've been using it for

Massive import in Django database

2014-06-11 Thread John Carlo
Hello everybody, I've fallen in love with Django two years ago and I've been using it for my job projects. In the past I found very useful information in this group, so a big thank you guys! I have a little doubt. I have to import in Django db (sqlite for local development, mySql on the server

Re: Django Database Data Type

2014-05-05 Thread Brendan Edwards
Thanks a lot for the reply! It got me thinking and I changed the code around a bit and was able to get the result I was looking for. What I did in the end was: teecolor = GolfCourseTees.objects.filter(Course_Name='course').values() tee1 = teecolor[0] and in the HTML i used {{ tee1.hole1_distanc

Re: Django Database Data Type

2014-05-05 Thread Mike Dewhirst
On 5/05/2014 5:39 PM, Brendan Edwards wrote: Hi, I have just started learning Django (been flip flopping between meteor and django, cant decide which to use..) and I am fairly new to web development in general. Basically, I have a query where I am using the code "teecolor = GolfCourseTees.objec

Django Database Data Type

2014-05-05 Thread Brendan Edwards
Hi, I have just started learning Django (been flip flopping between meteor and django, cant decide which to use..) and I am fairly new to web development in general. Basically, I have a query where I am using the code "teecolor = GolfCourseTees.objects.values('Tee_Color').filter(Course_Name=co

Re: Log django database queries using logging

2014-03-13 Thread Anju SB
Thank You Mr. Russell Keith-Magee. I want to log other details regarding the application. So I selected the django logging. LOG_URL = '/var/log/Crime_Mapping/' import logging class CustomQueryFilter(logging.Filter): def filter(self, record): for action in ['INSERT', 'UPDATE',

Re: Log django database queries using logging

2014-03-13 Thread Russell Keith-Magee
Hi Anju, Firstly - if you want to filter log messages that meet a specific criterion, you can install a filter into your logging configuration. Python and Django's logging documentation both contain sections about filtering: http://docs.python.org/2/library/logging.html#filter-objects https://doc

Log django database queries using logging

2014-03-13 Thread Anju SB
Dear All, I am a newbie in Django programming. I want to log insert, update, delete and failed select query in my daily log file. I configured 'django.db.backends' in the logger of the Logging dict in Settings.py. But I get all the queries in that application. I need only insert, update,

ANN: eGenix mxODBC Django Database Engine - Django ODBC Adapter 1.2.0

2013-06-18 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mxODBC Django Database Engine MS SQL Server ORM and ODBC Adapter for the Django Web Framework Version 1.2.0 The

Re: django database cache for longtime?

2013-05-29 Thread Gonzalo Delgado
El 28/05/13 20:04, kase escribió: > i need cache a page where i'm process a lot information > > and i dont wish process again > and i dont wish keep in memory RAM, (maybe nobody ever review) > > so i wish put this page in a database cache but what can i do for never > expire? You want to use

django database cache for longtime?

2013-05-28 Thread kase
i need cache a page where i'm process a lot information and i dont wish process again and i dont wish keep in memory RAM, (maybe nobody ever review) so i wish put this page in a database cache but what can i do for never expire? -- You received this message because you are subscribed to the

Re: problem setting up DJANGO Database MySQL, library MySQL-python seemed installed

2013-05-13 Thread Sergiy Khohlov
have you used virtenviroment ? could you please check a python version ? Many thanks, Serge +380 636150445 skype: skhohlov On Fri, May 10, 2013 at 1:25 AM, wrote: > Unable to setup MySQL on CentOS5.9 for DJango > > raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) > d

problem setting up DJANGO Database MySQL, library MySQL-python seemed installed

2013-05-09 Thread webgamer . sc
Unable to setup MySQL on CentOS5.9 for DJango raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb [schu@bigdata1 firstsite]$ which pip /usr/bin/which: no pip in (.:/usr/libexec/:

Heroku & Django: Database configuration issues with dj-database-url

2012-10-14 Thread Tuss4
I'm currently following Heroku's guide to Django on Heroku<https://devcenter.heroku.com/articles/django#database-settings>, but when it comes to configuring the database in settings.py I'm just at a lost. I tried copying and pasting the code provided: " import

Re: Django Database Improperly Configured when function called outside of Django

2012-06-12 Thread Nikolas Stevenson-Molnar
ttp://stackoverflow.com/questions/10881249/django-database-improperly-configured-when-function-called-outside-of-django > > --- > > I'm trying to call a python function that makes some queries into my > django database from GNU mailman. > > When mailman tries to deliver a mes

Django Database Improperly Configured when function called outside of Django

2012-06-11 Thread Group Mail
Hi, --- Preliminary Note: For nicer formatting of the code snippets in this email, you can check out the stack overflow post I made asking this question, http://stackoverflow.com/questions/10881249/django-database-improperly-configured-when-function-called-outside-of-django --- I'm tryi

Django Database Improperly Configured when function called outside of Django

2012-06-09 Thread Group Mail
Hi, I asked the following django-related question on StackOverflow the other day and didn't get much of a response, so I figured I'd ask you all here. http://stackoverflow.com/questions/10881249/django-database-improperly-configured-when-function-called-outside-of-django Is m

Re: Django Database

2012-04-27 Thread Daniel Sokolowski
w.klinsight.com -Original Message- From: ActNow Sent: Friday, April 27, 2012 5:24 PM To: Django users Subject: Django Database I am not sure I asking the right question. I need help with my website. The person use Django and now is no were to be found. I need someone to contact me that kno

Django Database

2012-04-27 Thread ActNow
I am not sure I asking the right question. I need help with my website. The person use Django and now is no were to be found. I need someone to contact me that knows Django. The website www.theblackchurches.org. Anyone can reach me by e-mail or phone 972-987-6166. Thanks J. Everett -- You r

Django Database Management App

2012-04-20 Thread dumb906
I've just upped my app to a relatively stable release though still beta. Check it out at https://github.com/dumb906/tiote or you can get from pip using the handle "tiote". It supports Database CRUD applications. If you ever knew Sqlbuddy and needed some sort of variant for your awesome django p

Re: Profiling Django (WAS Django database-api)

2012-04-04 Thread Javier Guerra Giraldez
On Wed, Apr 4, 2012 at 4:07 AM, Tom Evans wrote: > One pretty cool method I've used for live debugging in the past is to > 'log' to rabbitmq (Note - not celery - raw amqp), and send messages to > a logging exchange. You can use a topic key so that different > processes can be distinguished. a sim

Re: Profiling Django (WAS Django database-api)

2012-04-04 Thread Tom Evans
On Tue, Apr 3, 2012 at 11:25 PM, Andre Terra wrote: > Hey Javier, > > Thanks for the reply. My problem with the logs in the past was that they > tended to make the task even slower (due to recursion) but I guess that's > probably because I didn't call the logging from the appropriate places in > t

Re: Profiling Django (WAS Django database-api)

2012-04-03 Thread Javier Guerra Giraldez
On Tue, Apr 3, 2012 at 5:25 PM, Andre Terra wrote: > To make things a little more complicated, the task involves writing a large > amount of data to a temp database, handling it and then saving some > resulting queries to the permanent DB. This makes it a tad harder to analyze > what goes on in th

Re: Profiling Django (WAS Django database-api)

2012-04-03 Thread Andre Terra
Hey Javier, Thanks for the reply. My problem with the logs in the past was that they tended to make the task even slower (due to recursion) but I guess that's probably because I didn't call the logging from the appropriate places in the code. To make things a little more complicated, the task inv

Re: Profiling Django (WAS Django database-api)

2012-04-03 Thread Javier Guerra Giraldez
On Tue, Apr 3, 2012 at 8:21 AM, Andre Terra wrote: > I have some complex and database intensive asynchronous tasks running under > celery which take a LONG time to complete and I'd just love to be able to > keep track of the queries they generate in order to optimize and possibly > remove the bigg

Profiling Django (WAS Django database-api)

2012-04-03 Thread Andre Terra
While I know of the two methods mentioned by Anssi, I've often wondered how to profile my code from a project level. I have some complex and database intensive asynchronous tasks running under celery which take a LONG time to complete and I'd just love to be able to keep track of the queries they

Re: Django database-api

2012-04-03 Thread KasunLak
Hi, Thanks you very much for the informative answer! It clears all the questions I had in my mind. Because I have some idea to build a tool to draw the model (UML) --> Generate Django Model code --> and then we can deploy it to db. Moreover I was thinking that if it possible to customize (edit exi

Re: Django database-api

2012-04-03 Thread akaariai
On Apr 3, 11:27 am, KasunLak wrote: > Hi, > > No, sorry for not giving more details. What I am asking is once we > syncdb the generated scripts (create table). Can we see the method > implementation of database access api? > > For example: If we have created and deployed a model called Poll > (tut

Re: Django database-api

2012-04-03 Thread KasunLak
Hi, No, sorry for not giving more details. What I am asking is once we syncdb the generated scripts (create table). Can we see the method implementation of database access api? For example: If we have created and deployed a model called Poll (tutorial example in django site) p = Poll.objects.get

Re: Django database-api

2012-04-03 Thread Eugenio Minardi
Hi, Do you mean the SQL generated by your model? In this case you can use python manage.py sql APPNAME On Tue, Apr 3, 2012 at 8:45 AM, KasunLak wrote: > Hi all, > > I just wonder is there a way to browse/view the code of database api > methods generated? Is there any tool for this? > > Thanks

Django database-api

2012-04-02 Thread KasunLak
Hi all, I just wonder is there a way to browse/view the code of database api methods generated? Is there any tool for this? Thanks in advance, Kasun -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

Re: Django Database User-Side Access Basics

2012-03-14 Thread Nikolas Stevenson-Molnar
I think Fady means a tutorial for creating forms (not in admin) for editing polls. IIRC, the tutorial only covers editing polls via admin. Fady: I would take a look at the forms section of the docs: https://docs.djangoproject.com/en/1.3/topics/forms/. No tutorials, but plenty of example code.

Re: Django Database User-Side Access Basics

2012-03-14 Thread Javier Guerra Giraldez
On Wed, Mar 14, 2012 at 1:35 PM, Fady Kamal wrote: > no i need a tutorial to help me do these tasks that's exactly what was suggested: go to the Django site and do the tutorial. incidentally, most of the exercises are about a poll application -- Javier -- You received this message because yo

Re: Django Database User-Side Access Basics

2012-03-14 Thread Fady Kamal
no i need a tutorial to help me do these tasks On Wednesday, March 14, 2012 8:28:54 PM UTC+2, dummyman dummyman wrote: > > python official website will be good start > > On Wed, Mar 14, 2012 at 11:44 PM, Fady Kamal wrote: > >> Hello i am new to django and i've completed the Polls app tutorial >>

Re: Django Database User-Side Access Basics

2012-03-14 Thread dummyman dummyman
python official website will be good start On Wed, Mar 14, 2012 at 11:44 PM, Fady Kamal wrote: > Hello i am new to django and i've completed the Polls app tutorial > sucessfully,and what i want to do now *FROM THE USER SIDE *is the > following : > > 1-create poll. > 2-delete poll. > 3-edit the q

Re: Django Database User-Side Access Basics

2012-03-14 Thread dummyman dummyman
python official website will be good start On Wed, Mar 14, 2012 at 11:44 PM, Fady Kamal wrote: > Hello i am new to django and i've completed the Polls app tutorial > sucessfully,and what i want to do now *FROM THE USER SIDE *is the > following : > > 1-create poll. > 2-delete poll. > 3-edit the q

Django Database User-Side Access Basics

2012-03-14 Thread Fady Kamal
Hello i am new to django and i've completed the Polls app tutorial sucessfully,and what i want to do now *FROM THE USER SIDE *is the following : 1-create poll. 2-delete poll. 3-edit the question in a specific poll. 4-add a choice to the poll. 5-remove a choice from a poll. i don't have knowledg

Re: Is it possible to use MS SQL 2008 as the Django database engine?

2011-12-08 Thread Petr Přikryl
Thanks, David, for the information. Have a good time, Petr __ > Od: "David Fischer" > Komu: > Datum: 03.12.2011 22:23 > Předmět: Re: Is it possible to use MS SQL 2008 as the Django database engine? > >I

Re: Is it possible to use MS SQL 2008 as the Django database engine?

2011-12-03 Thread David Fischer
It is possible. The two major projects that I know of are django-pyodbcwhich I have used quite a bit and django-mssql which I have not used. Django-mssql only works on Windows and I have no experience with it. A

  1   2   >