Implement special model layout

2009-02-15 Thread g
Hi, Sorry for my english. I want to implement the following structure to all of my models. I have two db tables for every model a primary and a modifications ( for logging) Example: CONTENT id int(10) primary key (autincrement) cre_date datetime mod_date datetime body longtext status enum('A','D'

oracle with us7ascii encode character lost

2009-05-25 Thread g
Hi, We have a problem with an Oracle DB version 10g Release 10.2.0.1.0., Django latest svn version and cx_Oracle 5.0.1-2 "select * from nls_database_parameters where parameter='NLS_CHARACTERSET';" returns US7ASCII We tried to change the NLS_LANG enviroment setting to US7ASCII so we got a good

django.contrib.auth.tests.__test__.BASIC_TESTS fails with IntegrityError: (1062, "Duplicate entry 'testuser' for key 2") using mysql

2009-10-14 Thread G
Hi all, I'm using latest svn django with mysql. I'm getting the failure below when I run 'python manage.py test'. The failing lines seem to be: BASIC_TESTS = """ >>> from django.contrib.auth.models import User, AnonymousUser >>> u = User.objects.create_user('testuser', 't...@example.com', 'tes

How do I define a default (override-able) primary key field on an abstract model?

2011-11-05 Thread g
How do I define a custom primary key field on Base that can be overridden by B without an error? class Base(Model): class Meta: abstract = True id = SomeAwesomeIDField(primary_key=True) other_common_field = AwesomeField() class A(Base): pass class

Re: How do I define a default (override-able) primary key field on an abstract model?

2011-11-05 Thread g
automatic field get assigned when using models.Model? Thanks On Nov 5, 7:02 pm, Kurtis Mullins wrote: > Good point, Furbee! > > "g", I was going to suggest just overriding that "id" field -- but I read > the docs real quick and they say: > > "It is a

Re: How do I define a default (override-able) primary key field on an abstract model?

2011-11-06 Thread g
rimary_key=True, max_length=255) cls.add_to_class('id', auto) super(Base,cls)._prepare() class CustomAutoID(Model): __metaclass__ = Base class Meta: abstract = True On Nov 5, 8:05 pm, g wrote: > I do not guess I was clear with my problem, so I am

Job opportunity for employment in Loganville Georgia

2015-12-29 Thread g
Hello, I have read the previous emails about job postings on this forum and wanted to post an opening here. If you are interested, please send your information to *j...@gandssecurityincorporated.com* *Job Description:* We are looking for someone who loves to code and enjoys problem solving i

pgbouncer transaction mode safe with django orm?

2016-03-09 Thread g
Assuming one uses the ORM and avoids raw sql, is it safe to use PgBouncer in transaction mode? -- 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+unsu

Adding properties to models at run-time.

2008-10-30 Thread Alex G
Hi, I've been trying for some time to create a polymorphic link with a backwards-link from the associated model. The problem is the model is django.contrib.auth.models.User... Is there any way to add this functionality without changing the django core? Trying to call setattr(django.contrib.aut

Re: Adding properties to models at run-time.

2008-10-30 Thread Alex G
PROFILE_MODULE would have multiple values. Any clues? Thanks, Alex. On Oct 30, 4:33 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Oct 30, 8:11 pm, Alex G <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > I've been trying for some time to create a polym

Getting my widgets to stop escaping

2008-08-22 Thread Alex G
Hi All, I am trying to make a custom django widget that contains a javascript call that uses unsafe characters (it passes a string to another function, so I need single quote characters); namely: class MyTextInput(forms.TextInput): def __init__(self, *args, **kwargs): att

Widget rendering working as intended?

2008-08-25 Thread Alex G
Hi there, I have been trying to get a function call into a widget argument, but have not been able to at the template level, because it would appear that my safe_strings are being escaped somewhere down in the framework. I have created a widget and mark_safe'd an attribute value, but no matter w

Re: Widget rendering working as intended?

2008-08-25 Thread Alex G
#x27; the wisp") attrs['normal_string'] = "cat o' nine tails" super(MyWidget, self).__init__(*args, **kwargs) w = MyWidget() w.render("field_name", "") #=> u'' On Aug 25, 1:35 pm, Alex G <[EMAIL PROTECTED]> wrote: &g

dynamic associations?

2008-10-06 Thread Alex G
Dear django-users, Does anyone know of a way to dynamically create an object related to a model whose name is not known until runtime? Essentially, I have a situation wherein I need to create this associated object, but seem to have no way of getting at it. I am trying to do it by way of getatt

Re: dynamic associations?

2008-10-07 Thread Alex G
it to a variable (in order to set it)... Any ideas? -Alex. On Oct 6, 7:38 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On Tue, Oct 7, 2008 at 5:53 AM, Alex G <[EMAIL PROTECTED]> wrote: > > > Dear django-users, > > > Does anyone know of a w

Re: dynamic associations?

2008-10-07 Thread Alex G
I had not, actually, but it seems like it provides for exactly what I'm trying to do. I will look into it further, thank you. On Oct 6, 6:25 pm, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 6 oct, 23:53, Alex G <[EMAIL PROTECTED]> wrote:> Dear django-users, >

Re: dynamic associations?

2008-10-08 Thread Alex G
s though its attributes were in the current User table. #To that end, I strapped together a decorator that works like this: @link_model_to(Account, through = 'account') def __init__(self, *args, **kwargs): super(User, self).__init__(*args,**kwargs) I've actually gotten

Simple Dynamic Form Problem

2009-03-11 Thread Alex G
Having referenced http://www.b-list.org/weblog/2008/nov/09/dynamic-forms/, I set about in an attempt to make a dynamic form through a simple change to __init__, but not all is well... My code is simply: .class RFSInputForm(forms.Form): .def __init__(self, rfs, *args, **kwargs): #test init to

Re: Simple Dynamic Form Problem

2009-03-13 Thread Alex G
/sigh I knew it was going to be something like this. I'm sorry to have troubled you :-/. Thank you, JKM. On Mar 12, 9:31 pm, Jacob Kaplan-Moss wrote: > On Wed, Mar 11, 2009 at 11:30 AM,Alex G wrote: > > > Having referencedhttp://www.b-list.org/weblog/2008/nov/09/dynamic-

Model for Video Mashup

2009-06-29 Thread Dan G.
I want to create a web application that access videos from many different websites such as YouTube, Google Video, etc. The app should be able to store all the necessary information that would later allow the site to access a particular video. For instance, if the user inputs the URL http://www.you

Error creating test database

2009-04-02 Thread Andrew G.
I have a django app that is built against an existing database. In the database, there are a couple tables used as the many-to-many relation lookup table. However, I have mapped models to the many-to- many lookup table, since I have a need for accessing these entries directly. Since the tables

Re: Error creating test database

2009-04-02 Thread Andrew G.
g table intact. This will duplicate data > though - are these highly accessed tables? > > I think. > > -Adam > > On Apr 2, 9:23 am, "Andrew G." wrote: > > > I have a django app that is built against an existing database.  In > > the database, there are a cou

Re: Error creating test database

2009-04-03 Thread Andrew G.
arams) pysqlite2.dbapi2.OperationalError: table "part_positions" already exists The django project I am working with is mapped to an existing database, so this only causes a problem when tests are run, since the test system creates its temporary database. On Apr 2, 7:42 pm, Russell Keith

Re: Error creating test database

2009-04-06 Thread Andrew G.
wrote: > On Fri, Apr 3, 2009 at 4:25 PM, Andrew G. wrote: > > > The following code in a fresh project/app will cause the database > > creation to fail. > > > class Position(models.Model): > >    description = models.CharField(max_length=20, blank=

Re: Error creating test database

2009-04-06 Thread Andrew G.
Specifying "through" instead of "db_table" did not raise any errors, but it caused the relevant field in the admin change form to disappear! On Apr 3, 4:52 pm, Karen Tracey wrote: > On Fri, Apr 3, 2009 at 4:25 PM, Andrew G. wrote: > > > The following code in a

Re: fieldsets in form ( ticket #6630 )

2008-04-26 Thread g m
hai On 4/26/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hello Django Users, > > I'm a bit struggling with the newforms library, I'm creating multiple > forms where fieldsets need to be defined. I was looking into the > newforms documentation and didn't see anything there about widgets >

Re: object.filter and accessing items

2008-04-28 Thread g m
HAI On 4/29/08, lars <[EMAIL PROTECTED]> wrote: > > > Hi all, > > I was playing around with object.filter when I noticed something funny > in my postgresql.log. > This is my query in the view: > >prev_and_current = > Article.objects.filter(id__lte=article_id).order_by('-id')[0:2] >

Re: Template variable in filter?

2008-04-28 Thread g m
HAI On 4/29/08, Mike Chambers <[EMAIL PROTECTED]> wrote: > > > Is it possible to include a template variable inside a filter? > > Specifically, I want to have a global setting for the date format string: > > Something like: > > settings.py > -- > DATE_TIME_FORMAT = "M j, F \a\t P" > > > template

Re: @@@HOME BASED BUSSINESS OPPERTUNITY@@@

2008-04-28 Thread g m
OK On 4/29/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > HiGuys & friends... iam shyni. > > > my website is interested here > > >see this site > > but not complesary ok . > > by friends & guys...

Re: Great article about web2py

2008-04-28 Thread g m
HAI On 4/28/08, Milan Andric <[EMAIL PROTECTED]> wrote: > > > This is not Django specific but it is framework relevant. I thought > this was a great writeup of features for any framework. At least I am > one person who likes the features of this web2py framework. > > http://mdp.cti.depaul.edu/ex

Re: Great article about web2py

2008-04-28 Thread g m
HAI On 4/29/08, simonbun <[EMAIL PROTECTED]> wrote: > > > It's beyond me why they would classify PHP as a web framework, and on > top of that, include CakePHP in the comparison as well... Other than > that, it's hardly an independant and unbiased review, coming from the > authors of web2py themsel

Re: Session/Varibale and HttpResponseRedirect help please

2008-04-28 Thread g m
THANKYOU On 4/29/08, Brandon Taylor <[EMAIL PROTECTED]> wrote: > > > Hello everyone, > > I'm doing a redirect after a form to a "thank you" page, which I would > like to personalize with some of the data from the form. I've tried > setting a session as such: > > ### views.py code > > if form.is_va

Re: class in models.py 'not defined' exception

2008-04-28 Thread g m
THANKYOU On 4/29/08, skunkwerk <[EMAIL PROTECTED]> wrote: > > > I've been struggling with this error for the past hour. > > Error while importing URLconf 'winebago.urls': name 'AuthPermission' > is not defined > Exception Location: /usr/lib/python2.5/site-packages/django/core/ > urlresolvers.py in

FILM ACTRESSES PORN PICS

2008-05-28 Thread s g
*FILM ACTRESSES PORN PICS* --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubs

Re: regarding ManyToManyField help

2007-03-04 Thread MacH G
hi thanks Malcolm i already have __str__ method on my Teacher class. its definition is def __str__(self) return self.name where name is a CharField . we will be getting the name from the admin gui page thanks and regards ashok On 3/5/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > >

Re: regarding ManyToManyField help

2007-03-04 Thread MacH G
hey thanks a lot malcolm and james *__repr__* worked fine it my admin interface (GUI) i could see things like [thomson,Richie] as expected adding __repr__ solved my problem On 3/5/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Mon, 2007-03-05 at 00:55 -0600, James Bennett wrote:

regarding Foreign Key Display

2007-03-05 Thread MacH G
hi all, sorry to bother u ppl for the second time in a day . in my application i have foreign key relationship which is shown as a drop down list box. but in my application it contains some 2000-3000 entries . so i tried to display in other format . but it seems that a foreign could only be displa

applying a patch in windows ???

2007-03-06 Thread MacH G
hi all , for the list_filter to add fields other than specified fields i got a patch file (*list_filter.3.diff* ) from the following url http://code.djangoproject.com/ticket/3400 but i do know how to apply it in windows could somebody tell me the command to apply it . thanks in advance ashok --

Re: applying a patch in windows ???

2007-03-06 Thread MacH G
hey thank u guys this time just did manual replacement and it works fine On 3/6/07, limodou <[EMAIL PROTECTED]> wrote: > > > On 3/6/07, MacH G <[EMAIL PROTECTED]> wrote: > > hi all , > > for the list_filter to add fields other than specified fields i got a >

Re: regarding Foreign Key Display

2007-03-06 Thread MacH G
> down based on specific criteria just a thought but when > something has that many entries (not sure what your app is) ... seems > like maybe they should be categorized...then have the person choose a > category first. > > On Mar 5, 5:00 am, "MacH G" <[EMAI

Regarding Opening a link from admin interface

2007-03-06 Thread MacH G
hi all i have an app(USERS INFO) where the users details and photos are maintained .when i just click the app USER INFO it displays all the users details along with the thumbnail image of the photo and a link to the photo . but when i just click the link it is not opening neither in the same window

Re: regarding Foreign Key Display

2007-03-09 Thread MacH G
hi got solution ot the problem . just we have to add raw_id_admin = True as a attribute in defining the foriegn key in our model . this will show the textbox in our admin interface On 3/6/07, MacH G <[EMAIL PROTECTED]> wrote: > > hi thanks carole today full day searched for this p

for UNICEF

2007-03-13 Thread MacH G
I'm extending a personal invitation to my friends and family. http://friends.unicefusa.org/r/beee81202345102a8408 -- ashok --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

site is built with django, but my server doesn't know that...

2007-11-07 Thread erica g
I have very basic experience with Django templating and creating models and apps. The developer who built my site is gone and I am trying to sort things out. I know our site runs on Django. I used to have Django installed on my own machine and did all of my mini- development work there (like cr

Re: low-level cache & pagination

2007-11-30 Thread Chris G
Alright, I think I answered my own question. It seems the current RequestContext is a little messed up and not only requests cache to be remade, but also crashes runserver upon more than 1 request. On Nov 30, 7:26 pm, Chris G <[EMAIL PROTECTED]> wrote: > I have a large query that i

low-level cache & pagination

2007-11-30 Thread Chris G
I have a large query that is ran and takes about 50 seconds to completely and is pretty resource intensive. So what I have done is cached it into a key via cache.set('my_query_results', results, 300) The problem is that I also use pagination which results from this query. So when navigating to ?p

0.97 ready for deployment?

2007-12-28 Thread Alex G
Dear Djangonauts (>.>), With reference to the post "Development vs. Production Servers" (http://groups.google.com/group/django-users/browse_thread/ thread/1c65830ce2218039/ad8057d1296ba098? lnk=gst&q=0.96+0.97#ad8057d1296ba098) the recommendation seems to be to deploy the same version of Django t

Re: 0.97 ready for deployment?

2007-12-28 Thread Alex G
t;[EMAIL PROTECTED]> wrote: > On 28-Dec-07, at 10:32 PM, Alex G wrote: > > > However, I have to > > contend with a server admin who is uncomfortable deploying 0.97 > > because it is marked as prerelease, and he seems convinced that it > > will bring down the entire

Accessing Data Linked in One-To-One to Current User from a Table

2023-01-05 Thread G Daniel
Hello All! I need your help. I have a table, PersonWife, that's linked in a one-to-one fashion with the users (using Django's user authentication system). See attached models and admin control panel screenshots. I can get the username of the currently logged in user ( attached screenshots). W

New Install - django-admin.py ... just gives contest/options but doesn't run?

2012-05-09 Thread Robert G
When I type d:\myproj>django-admin.py startproject mysite or d:\myproj>django-admin.py test or any of the subcommands, I get this message: Usage: django-admin.py subcommand [options] [args] Options: -v VERBOSITY, --verbosity=VERBOSITY Verbosity level; 0=minimal output,

Re: New Install - django-admin.py ... just gives contest/options but doesn't run?

2012-05-09 Thread Robert G
Awesome, thought I tried this but apparently not. I had to use d:\myproj>python d:/Python27/Scripts/django-admin.py startproject mysite to make it work, but it worked so yay! On with the tutoral I go! On May 9, 3:59 pm, Daniel Roseman wrote: > On Wednesday, 9 May 2012 18:34:41 UTC+1, Ro

Where does form.is_valid() clean the form?

2011-09-20 Thread Jacob G
The Django documentation says that a form is cleaned when calling is_valid(): https://docs.djangoproject.com/en/dev/ref/forms/validation/ (see first paragraph) However, the is_valid soure code doesn't show that is does clean, as follows: def is_valid(self): """ Returns True if the form has

Re: Where does form.is_valid() clean the form?

2011-09-20 Thread Jacob G
Thanks, I didn't realize errors is property that calls _get_errors(). On Sep 20, 4:11 pm, Shawn Milochik wrote: > Take your study/research one step further: > > https://code.djangoproject.com/browser/django/trunk/django/forms/form... > > When it checks for self.errors, the _get_errors() function

Re: Where does form.is_valid() clean the form?

2011-09-20 Thread Jacob G
te: > On Tue, Sep 20, 2011 at 4:14 PM, Jacob G wrote: > > Thanks, I didn't realize errors is property that calls _get_errors(). > > Yeah, it's non-obvious. That's one of the nice things about > open-source, though. You can go through the code and understand how >

Re: Where does form.is_valid() clean the form?

2011-09-20 Thread Jacob G
r. How can the code set a variable to None, and it is set to an empty ErrorDict? It seems like a practical joke or something. On Sep 20, 4:55 pm, Shawn Milochik wrote: > On Tue, Sep 20, 2011 at 4:46 PM, Jacob G wrote: > > I doubt I'm familiar enough with Django to fix bugs. > > Wa

Re: Where does form.is_valid() clean the form?

2011-09-21 Thread Jacob G
Thanks all. I figured out my mess-up: In the view, I instantiated the form incorrectly as follows: form = AuthenticationForm(request.POST) Instead of the correct way: form = AuthenticationForm(request, data=request.POST) The debugger weirdness distracted me from the real problem. I still don

Customizing forms html

2011-09-21 Thread Jacob G
I'm trying to customize Django forms html based on three requirements: 1) Html output to match html given to me by a web site designer. 2) Automatically generate forms, so I don't have to duplicate html in templates. 3) Re-use as match of Django forms code as possible. For my first attempt, I'm w

Re: Customizing forms html

2011-09-21 Thread Jacob G
And I also want to display non-field errors after the form, not before. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/66g7i8P5DqEJ. To post to this group,

Simple input forms which show more than one row - easy/possible in django?

2011-10-05 Thread Chris G
I want to create a simple data entry form on a web page that shows all the columns of a database across the page (there aren't many columns, they will fit!) and a number of rows down the page. I.e. I want a data entry form that looks like MS Access 'tabular' format, as follows:- Col1Row1C

Re: Simple input forms which show more than one row - easy/possible in django?

2011-10-05 Thread Chris G
On Wed, Oct 05, 2011 at 03:13:08PM +, Brett Epps wrote: > Hi Chris, > > Once you've defined a model for your data, you can use a ModelForm [1] to > automatically generate a form for that model. > > You might also want to check out the admin site [2], which displays data > in a tabular format

Beginner a bit lost - need some pointers please

2011-10-05 Thread Chris G
I'm an experienced programmer (started around 1971 or so!) and I've done lots of things over the years, much of my background is in Unix (Solaris). In the last few years I have done quite a lot of web related stuff. I'm trying to get my mind round django. I have it installed on my unbuntu server,

Re: Beginner a bit lost - need some pointers please

2011-10-05 Thread Chris G
On Wed, Oct 05, 2011 at 08:58:10PM +0100, Cal Leeming [Simplicity Media Ltd] wrote: >Hi Chris, >I'm assuming that you don't have any experience with Python?? No/yes, I *do* have Python experience, it's my language of choice for scripts which require a bit more than basic shell scripting.

Re: Beginner a bit lost - need some pointers please

2011-10-05 Thread Chris G
On Wed, Oct 05, 2011 at 11:02:03PM +0300, Yaşar Arabacı wrote: >This documentation goes over deployment of >django: [1]https://docs.djangoproject.com/en/1.3/howto/deployment/ > Ah, brilliant, thanks, that certainly answers my question about how to use it with apache. -- Chris Green --

Re: Beginner a bit lost - need some pointers please

2011-10-05 Thread Chris G
On Wed, Oct 05, 2011 at 03:02:13PM -0500, Javier Guerra Giraldez wrote: > On Wed, Oct 5, 2011 at 2:55 PM, Chris G wrote: > > I'm trying to get my mind round django.  I have it installed on my > > unbuntu server, it works, I've worked through tutorials 1 and 2 and a >

Re: Beginner a bit lost - need some pointers please

2011-10-05 Thread Chris G
On Wed, Oct 05, 2011 at 04:35:49PM -0400, Peter Herndon wrote: > > On Oct 5, 2011, at 3:55 PM, Chris G wrote: > > > > However two rather basic things still elude me:- > > > >Where/how do I actually start creating the top level/page of a web > >site?

Re: Beginner a bit lost - need some pointers please

2011-10-06 Thread Chris G
On Thu, Oct 06, 2011 at 11:01:13AM +0530, kenneth gonsalves wrote: > On Wed, 2011-10-05 at 23:02 +0100, Chris G wrote: > > OK, so there isn't a single simple answer. However it would still be > > really nice to see a complete two or three page django site with a > >

Re: Beginner a bit lost - need some pointers please

2011-10-06 Thread Chris G
On Thu, Oct 06, 2011 at 01:14:37AM -0700, Daniel Roseman wrote: > On Wednesday, 5 October 2011 20:55:33 UTC+1, Chris Green wrote: > > I'm an experienced programmer (started around 1971 or so!) and I've done > lots of things over the years, much of my background is in Unix > (So

Re: Beginner a bit lost - need some pointers please

2011-10-06 Thread Chris G
On Thu, Oct 06, 2011 at 10:09:05AM +0100, Cal Leeming [Simplicity Media Ltd] wrote: >Chris - >The only thing I can say, is that you've been given some really good >advice on this thread so far. Yes, I'm not complaining at all, the feedback has all been very helpful. I'm just rather im

Re: Beginner a bit lost - need some pointers please

2011-10-07 Thread Chris G
On Fri, Oct 07, 2011 at 11:47:49AM +0530, kenneth gonsalves wrote: > On Thu, 2011-10-06 at 10:00 +0100, Chris G wrote: > > > this is as simple as it gets > > > https://bitbucket.org/lawgon/django-addition/overview > > > > Too simple for me, it doesn't run

Re: Beginner a bit lost - need some pointers please

2011-10-07 Thread Chris G
On Fri, Oct 07, 2011 at 11:40:03AM +0100, Chris G wrote: > On Fri, Oct 07, 2011 at 11:47:49AM +0530, kenneth gonsalves wrote: > > On Thu, 2011-10-06 at 10:00 +0100, Chris G wrote: > > > > this is as simple as it gets > > > > https://bitbucket.org/lawgon/django-a

Change Language while using Django-ModelTranslation package

2011-11-10 Thread Gokul G
How can we change language settings when Inserting data so that the data is stored in the corresponding field (fieldname_en for english etc..). I ve tried using activate(language_code), but it doesnt seem to work for insert statements. -- You received this message because you are subscribed to th

dynamic, heterogeneous formset?

2012-12-27 Thread Marco G.
Hello, I've just started using django for a relatively complex project, used other frameworks in the past. I need to create an interface where the user can create an ordered list of elements, each element with different properties. An example could be a page to build a questionnaire, where the

Re: Share connection between Django and SqlAlchemy

2013-08-28 Thread Tomasz G.
Hi, I am also going share Django ORM and SQLAlchemy connections. Do you know the solution? Thomas W dniu środa, 22 czerwca 2011 20:38:54 UTC+2 użytkownik Vladimir Mihailenco napisał: > > I am trying to share connection between Django and SqlAlchemy. I tried > following code: > > from django.db

How to track user behavior in django application

2013-09-23 Thread Anu G
I am building a site using django I am new to django. What I am trying to do is to track user clicks on pages and store that information. It would be great if someone can point to a simple example where adding functionality that requires to track data to the front end and capturing it from the

Re: ImportError: No module named django.core.wsgi even if sys.path contains my virtualenv

2013-10-28 Thread G. Allegri
eceiving emails from it, send an >> email to django-users+unsubscr...@googlegroups.com. >> To post to this group, send email to django-users@googlegroups.com. >> Visit this group at http://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://gr

Best Practices Django Questions

2015-01-30 Thread G Z
Hello, I'm in the design stages of a site that I'm building. It is going to be a basic social media site for a game I'm designing in unity. I'm not entirely sure how to do some of the things I want to in Django. Thus, my first question is generally best practices question as well as a how do I

Re: Best Practices Django Questions

2015-01-30 Thread G Z
class *User*(models.Model): id = models.*AutoField*(primary_key=True) username = models.CharField(max_length=4000) password = models.CharField(max_length=4000) email = models.CharField(max_length=4000) phone = models.CharField(max_length=4000) profile_image = models.FileField() about = mo

Re: Best Practices Django Questions

2015-01-30 Thread G Z
class User(models.Model): id = models.AutoField(primary_key=True) username = models.CharField(max_length=4000) password = models.CharField(max_length=4000) email = models.CharField(max_length=4000) phone = models.CharField(max_length=4000) profile_image = models.FileField()

Best Practices Model Design

2015-01-30 Thread G Z
Hello, I'm in the design stages of a site that I'm building. It is going to be a basic social media site for a game I'm designing in unity. I'm not entirely sure how to do some of the things I want to in Django. Thus, my first question is generally best practices question as well as a how do

CSRF token missing on file upload ajax request

2015-02-08 Thread G Z
hello, I have an ajax request that sends a file to django, it is saying that the csrf token is missing but i copied my other ajax request that are working. I'm sure it has something to do with trying to pass a file to upload. I get a 403 and csrf missing return. base.html

Advanced Query / Django Idiocy Question

2014-07-10 Thread G Z
ours, sum(ram_gb_hours) RAM_GB_Hours, licensing_authority, product from customers a, vm_groups b, vms c, vm_license_histories d, licenses e, vm_compute_usage_histories f, license_authorities g where a.customer_id = b.customer_id and

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: Django Database Switching Issue

2014-07-11 Thread G Z
1/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

Re: Django Database Switching Issue

2014-07-14 Thread G Z
oup_id = c.vm_group_id and c.vm_id = d.vm_id and trunc(d.datetime) = to_date('01-Jun-2014', 'DD-MON-YY') and a.customer_id != 24 and inactive = 'N' and cpu_ghz_hours > 0 and e.datetime = (select max(datetime) from vm_compute_histories g where c.vm_id = g.vm_id)

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 dat

Django Models Issue with Oracle

2014-07-14 Thread G Z
I'm getting the following error while trying to access my licenses page from the admin panel. I have no idea why im getting the error. ORA-00904: "LICENSES"."CODE": invalid identifier Here is a describe of my current table: desc licenses Name

how do i return an int as the returned object for admin panel

2014-07-14 Thread G Z
how do I fix this? class Vm_licenses(models.Model): vm_license_id = models.BigIntegerField(primary_key = True, editable = False, db_column = 'vm_license_id') license= models.ForeignKey(License, on_delete = models.PROTECT) vm= models.ForeignKey(Vm, on_delete = models.PROTECT) class

Admin Page Customization Questions

2014-07-15 Thread G Z
I have a few questions, is it possible to template the admin page? second I'm trying to customize some of the individuals pages for my particular issue I have a table named vm_licenses and a licenses table, I have my models set up l

Re: Admin Page Customization Questions

2014-07-15 Thread G Z
Ive also tried class License(models.Model): license_id = models.BigIntegerField(primary_key = True, editable = False, db_column = 'license_id') license_authority = models.ForeignKey(License_authoritie, on_delete = models.PROTECT) product = models.CharField(max_length = 20) class

Django ManytoMany Relationships

2014-07-15 Thread G Z
I will start by saying I have an existing database, for the purpose of my question it has three tables: Vm Vm_licenses Licenses This database is per-existing before we decided to make a django web-portal. Basically licenses is a da

Re: Django ManytoMany Relationships

2014-07-15 Thread G Z
y join table in the > database. If you are using an unmanaged database then you will need to > create the intermediary table yourself. See the ManyToMany field reference > <https://docs.djangoproject.com/en/dev/ref/models/fields/#manytomanyfield> > > On Tuesday, July 15, 2014

Re: Django ManytoMany Relationships

2014-07-15 Thread G Z
Admin.py class vm_license_admin(admin.ModelAdmin): list_display = ('vm',) search_fields = ('vm__vm_name',) ordering = ('vm',) filter_horizontal = ('license',) admin.site.register(Vm_license, vm_license_admin) class License(models.Model): license_id = models.BigIntegerFie

Django Models PrimaryKey not incrimenting I dont understand this framework and the documentation is poorly written.

2014-07-15 Thread G Z
So I have a database that we are using to collect vm statistics. It is always running and writing to a django database. I built my models file to resemble the db. However I have run into quite a few issues. I was wondering if anyone else has run into these issues and found out how to solve them.

Re: Django Models PrimaryKey not incrimenting I dont understand this framework and the documentation is poorly written.

2014-07-15 Thread G Z
I can update items just not add them always the same error cannot insert null for the primary key -- 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-use

Re: Django Models PrimaryKey not incrimenting I dont understand this framework and the documentation is poorly written.

2014-07-15 Thread G Z
insert NULL into ("DEV"."VM_LICENSES"."VM_LICENSE_ID") On Tuesday, July 15, 2014 4:09:29 PM UTC-6, Tom Evans wrote: > > On Tue, Jul 15, 2014 at 10:23 PM, G Z > > wrote: > > So I have a database that we are using to collect vm statistics. It

Re: Django Models PrimaryKey not incrimenting I dont understand this framework and the documentation is poorly written.

2014-07-15 Thread G Z
http://www.oracle.com/technetwork/articles/dsl/vasiliev-django-100257.html the guide I followed from oracle. On Tuesday, July 15, 2014 4:16:54 PM UTC-6, G Z wrote: > > Tom, > > It fails with both autofield and bigintergerfield > > class License(models.Model): >license_

Re: Django Models PrimaryKey not incrimenting I dont understand this framework and the documentation is poorly written.

2014-07-16 Thread G Z
so I added a db trigger in oracle and it still said the same thing when ever I tried to save the new addition. Also whenever I try to go to an existing vm the manytomany field throws an exception that table or view doesn't exist but when I goto add new it doesnt and the correct field is display

Re: Django Models PrimaryKey not incrimenting I dont understand this framework and the documentation is poorly written.

2014-07-16 Thread G Z
Percival/dp/1449364829/ > > Hope this helps > Frank > > > > Am 16.07.14 19:08, schrieb G Z: > > so I added a db trigger in oracle and it still said the same thing when > ever I tried to save the new addition. Also whenever I try to go to an > existing vm the manytomany f

Django Template Dir Question

2014-07-16 Thread G Z
My project structure goes *holon* * -holon* -settings.py -etc * -portal** -App name* * -static* css / images *-templates* -main site template files views.py urls.py etc * -templates* base.html

Re: Django Admin DB Error only when trying to delete an inserted record delete.

2014-07-16 Thread G Z
> > upon further investigation I found that inspectdb on the production > database only will output a models.py for the django tables, I need it to > output it for the entire schema like it did on the development database, > to prevent unessecary changes the premissions of the django user are r

  1   2   3   >