Re: Backwards relation (ie XXX_set) across apps

2006-09-08 Thread Jay Parlar
rticle' model? That doesn't feel quite right, simply because someone would have hit it before this, but it's a possibility. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Re: Backwards relation (ie XXX_set) across apps

2006-09-08 Thread Jay Parlar
symptoms sound familiar. No such luck, I'm still seeing the problem. I appreciate the thought though! Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Backwards relation (ie XXX_set) across apps

2006-09-08 Thread Jay Parlar
On 9/8/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > > > On 9/9/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > > > > Because 'stockphoto' appears before 'articles' in INSTALLED_APPS, > > could it be preventing the ORM from s

Re: Backwards relation (ie XXX_set) across apps

2006-09-09 Thread Jay Parlar
>> from testproject.mytest.models import Photo >>> Photo.objects.all()[0].article_set.all() you do: >>> from testproject.mytest.models import Photo >>> x = Photo.objects.get(id=1).article_set.all() it all works perfectly! So if you do a get() instead of an all(), th

Sitemap Index with Cache gives a NoReverseMatch exception

2006-09-10 Thread Jay Klehr
x27;t pass the string 'django.contrib.sitemaps.views.index' as the first parameter of cache_page since it's expecting a callable. Anyone see any reasons that the first snippet of code wouldn't be working for just the sitemap.xml line? Thanks, Jay --~--~-~--~---

Re: serving static images

2006-09-10 Thread Jay Parlar
gt; yields 'ViewDoesNotExist at images/logo.gif' > > Any suggestions? I've had a thorough search for a solution but > nothing seems to work. > > Thanks! > > P.S apologies to deezthugs for attaching my query to his query! Well, my guess would be that you're usin

Re: Re: serving static images

2006-09-11 Thread Jay Parlar
On 9/12/06, Allan Henderson <[EMAIL PROTECTED]> wrote: > > Thanks Jay but that doesn't appear to make any difference. I wonder > is it how i have settings.py set up but nothing jumps out at me when > trying to find where I've gone wrong. Don't know if its imp

Re: Backwards relation (ie XXX_set) across apps

2006-09-11 Thread Jay Parlar
On 9/12/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On 9/10/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > > I've created a patch (http://code.djangoproject.com/ticket/2684) that > > mentions all of this. > > The ticket now has a patch to solve th

Re: serving static images

2006-09-11 Thread Jay Parlar
.views.static Ahh, I think I know your problem. Can you post your entire urls.py? Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-

Re: Re: serving static images

2006-09-11 Thread Jay Parlar
it's trying to use 'myprojects.products.views.django.views.static.serve', which is *not* what you want. Try this instead for your urls.py: urlpatterns = patterns('myproject.products.views', (r'^products/', 'index'), (r'^$', 'index'

Re: serving static images

2006-09-11 Thread Jay Parlar
On 9/11/06, Allan Henderson <[EMAIL PROTECTED]> wrote: > > That's so obvious now that you point that out, I don't know how I > could have missed that. Really thanks a million Jay! it all works > perfectly now. > Glad it worked for you. One last thing you might wan

Re: magic removal mean?

2006-09-11 Thread Jay Klehr
Check out the djangoproject site for more info: http://code.djangoproject.com/wiki/RemovingTheMagic Jay Picio wrote: > sorry guys for the boring question, what is the meaning , exactly, of the > "magic removal"? >

Re: Add Functionality to Admin Interface

2006-09-12 Thread Jay Parlar
s to a > specified folder. Is this possible? Or do I have to write my own Fields? You'd have to write your own field to do the zip extraction. The stockphoto app (http://www.carcosa.net/jason/software/django/stockphoto/) does a zip upload/extraction, but you upload the z

Re: Mac vs. PC for Django work.

2006-09-13 Thread Jay Parlar
een flawless. There are binary installers for PostgreSQL and MySQL. I haven't had to build anything from source for my setup (except PIL, but that builds perfectly with 'python setup.py install') At my old job, I did Django development with Gentoo, that worked nicely too. Jay P.

Re: Strange behaviour of django webapp on dreamhost

2006-09-14 Thread Jay Parlar
g horrible MySQL access times on one of my Dreamhost accounts (with Django), but after the upgrades it seems to be ok. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: Access to models in validators

2006-09-14 Thread Jay Parlar
y/wfs/hnm/validators.py in > is_inside_chosen_network(field_data, all_data) > 31 > 32 def is_inside_chosen_network(field_data,all_data): > ---> 33 host_network=Network.objects.get(id=all_data['network']) > 34 host_network_ip=host_netw

Re: Psyco & Database Stored Procedures / Prepared Statement

2006-09-14 Thread Jay Parlar
system. Various Django-based sites have stood up to Slashdot, Digg, Fark, etc. Unless your hardware is really underpowered, you shouldn't have too many issues. Just follow the various performance hints people offer (like media being server from a different server, use caching, etc.) Jay P. -

Re: How to combine generic object_detail and object_list view in a template?

2006-09-15 Thread Jay Parlar
x27;^(?P\d+)/$', 'django.views.generic.list_detail.object_detail', device_dict), Then just do this in your template: {% for item in object.item_set.all %} {{item.name}} {% endfor %} For an model, if there are other models of type XXX pointin

Re: cleanup (X)HTML-code

2006-09-17 Thread Jay Parlar
t; input. > Or if you want the best of both worlds, you can try Fredrick's ElementSoup (http://effbot.org/zone/element-soup.htm). It produces an ElementTree wrapper around BeautifulSoup's output. Jay P. --~--~-~--~~~---~--~~ You received this message bec

Re: printable documentation

2006-09-18 Thread Jay Parlar
I think all the documentation pages have a "print" stylesheet. So just print it from your browser, and you should get it printing using the correct stylesheet. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Product comparison in Django e-commerce website

2022-01-20 Thread Dexterr Jay
Hello guys, can someone please help me to implement product comparison in Django e-commerce website, perhaps some guideline or link to a tutorial will be very helpful. Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from th

Help : Embedding pdf in Django detailview

2022-03-16 Thread Dexterr Jay
Hello guys, I'm developing a job board, and I want to display uploaded files in job detailview without downloading the file. When job seakers open a posted job I want the uploaded file from employer to be rendered in web browser -- You received this message because you are subscribed to the Googl

Re: Help : Embedding pdf in Django detailview

2022-03-18 Thread Dexterr Jay
Thanks, I'll check it out On Thu, Mar 17, 2022, 10:05 RANGA BHARATH JINKA wrote: > Hi, > > Please try this. > > > https://stackoverflow.com/questions/11779246/how-to-show-a-pdf-file-in-a-django-view > > On Thu, Mar 17, 2022 at 12:12 PM Dexterr Jay wrote: > >

Re: runserver not working

2022-03-26 Thread Kevin Jay
Did you activate your virtual environment? Sent from my iPhone > On Mar 22, 2022, at 10:32 PM, 'Delvin Alexander' via Django users > wrote: > > i did that but the problem still remains :( > >> On Tuesday, March 22, 2022 at 2:09:33 AM UTC-7 sebasti...@gmail.com wrote: >> Hey, >> >> I think y

Help please, please help

2022-05-04 Thread Dexterr Jay
my main project urls.py file has urlpatterns = [ path('mainapp/', include('mainapp.urls', namespace='mainap)), ] and my app urls.py has the following path path('', views.item_list, name='item_list'), my allowed hosts in settings is ALLOWED_HOSTS = ['.herokuapp.com'] i have already deployed the a

Help please,

2022-05-06 Thread Dexterr Jay
How do I make my domain be like https://my domain.herokuapp.com/mainapp/ when I open my Django app hosted on heroku -- 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

Sending emails to users

2022-05-17 Thread Dexterr Jay
Hello guys, hope you are doing well I'm building an online multivendor marketplaces and i want customers to be able to send email from a form to a vendor in a product details page, can anyone please help me with this? A link to a tutorial will be very helpful. Thanks in advance. -- You received t

sending and receiving data using ajax/html

2011-09-15 Thread jay K.
Hello I have a page where a user makes a selection What I want to do is to take the user's selection to the "next page" so I can process the user's request in a new page How can I do that? I know I have to use ajax (but if there is a better method please let me know), so how can I use ajax to

Re: sending and receiving data using ajax/html

2011-09-15 Thread jay K.
; When in next page, you can create hidden form fields to store data you > passed from first page, and then you can post them again in any page you > want. > > 2011/9/15 jay K. > > >> Hello >> >> I have a page where a user makes a selection >> >> Wh

Re: Catching the autogenerated admin post

2011-09-29 Thread Jay Martin
Awesome, I think that's it. Much thanks. jay On Sep 29, 2011, at 6:31 PM, Andres Reyes wrote: > You could try doing your processing in the save_model method of ModelAdmin > > https://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_model

one view for multiple templates

2011-11-07 Thread jay K.
t template)? thanks jay k -- 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 unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more

render_to_response pointing to multiple templates

2011-11-07 Thread jay K.
Hello I have a view with the following render_to_template function ... return render_to_response( 'template/template.html', {var'': var}, context_instance=RequestContext(request)) ... I want the render_to_response to point to more than 1 template. So far I've tried adding a dictionary of templ

Re: render_to_response pointing to multiple templates

2011-11-07 Thread jay K.
Evans wrote: > On Mon, Nov 7, 2011 at 3:09 PM, jay K. > wrote: > > > > Hello > > > > I have a view with the following render_to_template function > > > > ... > > > > return render_to_response( 'template/template.html', {var'&#x

template information in django view

2011-11-08 Thread jay K.
Hello, Is there any way I could retrieve information about a template, such as template name, url, etc inside a view? is there built-in object that represents the template object? thanks regards -- You received this message because you are subscribed to the Google Groups "Django users" group

Re: render_to_response pointing to multiple templates

2011-11-08 Thread jay K.
template, such as name and url inside a view? I'd like to use it to differentiate between templates and use logic to pick the template I want to render again, Tom, thanks for your assistance On Mon, Nov 7, 2011 at 2:04 PM, Tom Evans wrote: > On Mon, Nov 7, 2011 at 3:59 PM, jay K. > wr

render only 1 radioselect field

2011-11-10 Thread jay K.
Hello, does anyone know how to render only 1 radioselect in a django template? for now I have {{ form.options }} but it renders the whole list. I'd like to have more control on which ones I want to render thanks in advance -- You received this message because you are subscribed to the Google

Misfiring signal handler

2011-12-30 Thread Jay Wineinger
Hey guys, I have an odd problem where a post_save signal handler is getting called from a class different than what I specified as the sender. The code is at http://dpaste.com/hold/679348/ and also below for when the pastebin is deleted. I'm connecting the rating_denormalizer() function to the po

django-admin.py startproject mysite error

2013-07-20 Thread Jay Lozier
Using openSUSE 12.3 python 2.7.3 django 1.5.1 installed manually and verified When I enter "django-admin.py startproject mysite" at the command prompt I get the following traceback: Traceback (most recent call last): File "/usr/bin/django-admin.py", line 5, in management.execute_from_command_li

Re: django-admin.py startproject mysite error

2013-07-21 Thread Jay Lozier
-pad-1.0 /usr/lib/python2.7/site-packages /usr/lib64/python2.7/site-packages/wx-2.9.4-gtk2 On Saturday, July 20, 2013 5:55:21 PM UTC-4, Jay Lozier wrote: > > Using openSUSE 12.3 > python 2.7.3 > django 1.5.1 installed manually and verified > > When I enter "django-admin.py star

python manage.py runserver error

2013-07-22 Thread Jay Lozier
I get the following error when run python manage.py runserver: OS openSUSE 12.3 django 1.7 boopers@linux-nss6:~/myfirstsite> python manage.py runserver Traceback (most recent call last): File "manage.py", line 10, in execute_from_command_line(sys.argv) File "/home/boopers/django-trunk/django/co

Re: django-admin.py startproject mysite error

2013-07-23 Thread Jay Lozier
virtualenv seems to work well and I can get django tamed. On Saturday, July 20, 2013 5:55:21 PM UTC-4, Jay Lozier wrote: > > Using openSUSE 12.3 > python 2.7.3 > django 1.5.1 installed manually and verified > > When I enter "django-admin.py startproject mysite" at the

Re: python manage.py runserver error

2013-07-23 Thread Jay Lozier
virtualenv works, this for the link. On Sunday, July 21, 2013 10:09:59 PM UTC-4, Jay Lozier wrote: > > I get the following error when run python manage.py runserver: > > OS openSUSE 12.3 > django 1.7 > > > boopers@linux-nss6:~/myfirstsite> python manage.py runserver &g

storing django object into javascript array

2011-06-10 Thread jay K.
Hello, I am not a django developer, but I have a background on html, css, javascript, jquery and php. I was wondering if you can help me with a question regarding django, since I'm working on a website built on django (which was not started by me) I want to store a django object into a javascri

Re: storing django object into javascript array

2011-06-14 Thread jay K.
e the {{ school|escapejs }} into a javascript array, and use the data inside school as if it were an array element, like map_schools[1], map_schools[3] etc Thanks regards, JK On Fri, Jun 10, 2011 at 12:21 PM, Ian Clelland wrote: > > > On Fri, Jun 10, 2011 at 7:48 AM, jay K. wrote: &

Re: storing django object into javascript variable/array

2011-06-15 Thread jay K.
would be welcomed Thanks, and again sorry for seeming rude/desperate, it was all my fault On Wed, Jun 15, 2011 at 10:45 AM, Ian Clelland wrote: > On Wed, Jun 15, 2011 at 7:27 AM, jay K. wrote: > >> Hello, >> >> I've posted my question before, but I believe I didn&#x

Re: storing django object into javascript variable/array

2011-06-15 Thread jay K.
doing it right On Wed, Jun 15, 2011 at 1:36 PM, John Finlay wrote: > On 6/15/11 8:59 AM, jay K. wrote: > > Hello, > > I apologize for seeming too impatient or rude, actually I'm a bit in a > hurry because I was given a project > and was told that it was urgent. I miscal

django page loads forever

2011-06-22 Thread jay K.
Hello, everyone I have a django page which loads indefinitely some of the javascript that is supposed to come up does not appear on the screen (while the page is still loading), but i checked with firebugs and there are no error messages at all any advice would be helpful thanks jay k

forms and form processing

2011-06-28 Thread jay K.
Hello, I need to add a form on my django website so far this is what i have: in my models.py: import statements not shown here CONTACT_OPTIONS = ( ('skype video anruf','Skype Video- Anruf'), ('skype anruf ','Skype Anruf'),

Re: forms and form processing

2011-06-30 Thread jay K.
Hello, thanks for the reply I dont have email settings in my settings.py file? is that straightforward, like an import statement or something more complex? I am using django version (1, 1, 1, 'final', 0) - that's what i got after typing import django django.VERSION on the pyth

need to change models

2011-03-30 Thread jay K.
Hello, I've been struggling for quite a white with this whenever i change my models.py file by adding a new text area I get a 'error 500 internal server error' besides i keep getting an error whenever i try to syncdb my database can anyone please explain what i'm doing wrong? thanks -- You

manage.py command not found

2011-03-30 Thread jay K.
Hello, I am following the tutorial at http://south.aeracode.org/docs/installation.html#installation-configure in order to install South. I've installed it successfully and modified INSTALLED_APPS so it includes 'south', in the settings.py now I execute the command: ./manage.py shell inside my cu

Re: manage.py command not found

2011-03-30 Thread jay K.
Hello, Shawn I type python manage.py shell in my project directory and get the following error Error: No module named xx regards On Wed, Mar 30, 2011 at 11:52 AM, Shawn Milochik wrote: > Check the permissions on manage.py. I'm guessing it's not executable. > > Either use chmod +x on manag

Re: manage.py command not found

2011-03-30 Thread jay K.
hi, Shawn I finally managed to get python manage.py shell to work, by commenting out those INSTALLED_APPS that had an issue with 'import x' it turns out that 'import x' was the problem. do you have any suggestions to fix 'import x'? thanks On Wed, M

new subpage in django

2011-03-30 Thread jay K.
Hello, How do you create a new subpage in django? thanks -- 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 unsubscribe from this group, send email to django-users+unsubscr..

Re: new subpage in django

2011-03-30 Thread jay K.
Xavier Ordoquy wrote: > > Le 30 mars 2011 à 21:16, jay K. a écrit : > > > Hello, > > > > How do you create a new subpage in django? > > > > thanks > > Hi, > > What do you mean or I'd rather ask, what are you trying to do ? > > Regards, >

new text area in django admin page

2011-03-31 Thread jay K.
hello how can i add a new text field in the django admin area i want to create a new subpage thanks -- 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 unsubscribe from this g

Re: new text area in django admin page

2011-03-31 Thread jay K.
ge.py sql *my-application* However, when I refresh my website, I get an *Error 505. *This error appears only in the pages that use the models.py file I've modified, so the rest of the website works fine. So what am I doing wrong? Thanks On Thu, Mar 31, 2011 at 11:58 AM, Daniel Rosema

Re: new text area in django admin page

2011-03-31 Thread jay K.
Thanks for the advice, But I am not exactly migrating databases, just modifying an existing one On Thu, Mar 31, 2011 at 2:50 PM, Shawn Milochik wrote: > On Thu, Mar 31, 2011 at 1:39 PM, jay K. > wrote: > > > > > > > > So what am I doing wrong? > > > &

Re: new text area in django admin page

2011-03-31 Thread jay K.
thanks, it works fine!! I can't believe I spent 2 days trying to sort out my database issues greatly appreciate your advice :) On Thu, Mar 31, 2011 at 3:04 PM, Shawn Milochik wrote: > > On Mar 31, 2011 1:55 PM, "jay K." wrote: > > > > Thanks for the adv

south for django

2011-03-31 Thread jay K.
hello, I've downloaded and installed south successfully to manage changes with my models.py file I type the following command *python manage.py schemamigration myApp --auto* then, get the following message *You cannot use --auto on an app with no migrations. Try --initial.* So I do as stated,

Re: south for django

2011-03-31 Thread jay K.
All I did to change my models.py, was to add the following line *map_text = models.TextField( 'Map text', blank = True, null = False, help_text = 'text on the subpage "map"')* As you can see, I intend to add a new text area in my models.py At the bottom of the page, I type this code *from south

Re: south for django

2011-03-31 Thread jay K.
that's weird, because I keep getting the same error the field that I'm using is not custom (models.TextField) it may be located somewhere else On Thu, Mar 31, 2011 at 4:47 PM, Shawn Milochik wrote: > You don't need that inspection feature for fields known to Django. Just > custom types. >

south for django

2011-03-31 Thread jay K.
Hello, I've been using south to migrate a database I followed all the commands to make the migrations in south (--initial and --auto), all of this, after making my desired changes in modes.py but when I refresh my page I still get a "Error 505" messages I've checked spelling mistakes etc but fo

Re: south for django

2011-03-31 Thread jay K.
nd of code This piece of code has been generating an error when executing the *python manage.py schemamigration myApp --initial* command in South If the above code has doesn't do anything, I will comment it out On Thu, Mar 31, 2011 at 5:04 PM, jay K. wrote: > > Hello, > > I&

multilingual django

2011-04-04 Thread jay K.
Hello, Currently I have 2 folders, one for german and english language translations, respectively The translations are inside a django.po file for each language. I want to add a new language How can I do it? thanks -- You received this message because you are subscribed to the Google Groups

creating a URL from scratch

2011-04-04 Thread jay K.
Hello I have a website with www.xyz.com/subpage I want to change the name of the subpage how do you do it? thanks -- 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 unsubscr

using a models fields

2011-04-04 Thread jay K.
Hello, I got a couple of fields from a model I want to use so the models.py looks like this * class XZY(): latitude = models.CharField() longitude = models.CharField(.) zoomlevel = models.CharField()* I want to retrieve the data inside latitude, longitude and zoomlevel to b

Suggestion

2015-03-18 Thread Jay Prasad
Hi All, I'm started Pyhthon and django ,give me some suggestions and which sites was good .help me.thank you all -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Somethings the connection to the Postgress get lost. Why?

2014-07-12 Thread Jay Crossler
Who woulda thunk it, but switching the DATABASE_HOST to a "" blank string (then restarting nginx and postgresql) fixed the intermittent connection dropping for me! On Thursday, March 13, 2008 10:11:00 AM UTC-4, Rajesh Dhawan wrote: > > Hi, > > On Mar 12, 12:31 pm, mamcxyz wrote: > > I'm getti

Re: Newbie: ImportError during syncdb

2014-03-06 Thread Jay Parikh
ntrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'bookmarks', ) I am assuming over here as you have kept your app name as *'bookmarks'*. -Jay On T

Re: Newbie: ImportError during syncdb

2014-03-06 Thread Jay Parikh
Let say for example i am going to create new app say bookmarks then i will do something like *"python manage.py startapp bookmarks" *likewise whatever name you have passed in place of *bookmarks.* Just place it inside INSTALLED_APPS. On Thu, Mar 6, 2014 at 1:06 PM, Robin Lery wrote: > What the

Re: if statement in django

2014-04-05 Thread Jay Lozier
l(self): amount = 0 if self.sale_head <= 0: amount = self.number * self.estimated_weight_hd return amount Both versions will return a value not matter whether the test condition evaluates to True or False. The second version assumes the default value is 0 -- Jay Lozier jsloz...@

Re: Analysis of csv data

2014-04-10 Thread Jay Parikh
, Jay On Thu, Apr 10, 2014 at 4:13 PM, Saransh Mehta wrote: > I need to analyze the incoming data from the csv file and present it to > the user in the best possible way? > What tools do i need to use for analyzing the csv and drawing graphs etc > out of the csv? > > -- > You

Pulling data from database

2017-11-02 Thread jay seattle
n), but if the table is already created, I can't find detail what to do. If I have a table called "customer" and want to pull the data into my template, what should I read up on to accomplish this? Thanks Jay -- You received this message because you are subscribed to the Goo

How to use django.contrib.postgres.forms widgets in the admin site

2016-08-16 Thread Jay Sheldon
that come with HStoreField is not appearing (reference: https://docs.djangoproject.com/en/1.8/ref/contrib/postgres/forms/ ) I cant see to figure out how to get the admin side to use the widget for HStoreField. Any ideas? Thank you very much, Jay -- You received this message because you are

Re: Using signals to populate another model based on new registered user

2019-03-10 Thread Kevin Jay
Here is the relevant template from the link provided > >1. >2. >3. >4. >5. Employee Records >6. {% load staticfiles %} >7. >8. >9. >10. >11. >12. >13. Employee ID >14. Employee Name >15.

Re: Using signals to populate another model based on new registered user

2019-03-10 Thread Kevin Jay
Disregard...Wrong thread. On Sun, Mar 10, 2019 at 2:47 PM Kevin Jay wrote: > > Here is the relevant template from the link provided > >> >>1. >>2. >>3. >>4. >>5. Employee Records >>6. {% load static

Re: BaseModelFormSet > _construct_form

2019-04-02 Thread Kevin Jay
ke...@kjay.net On Tue, Apr 2, 2019 at 4:12 PM nikolaysm wrote: > Hello, > > In function _construct_form variable "pk_key" is generated as: > pk_key = "%s-%s" % (self.add_prefix (i), self.model._meta.pk.name) " > > So pk_key is not flexible. Because if I overwrite function "add_prefix" > from cl

Re: ORM help with INNER JOIN and GROUP BY

2019-05-06 Thread Kevin Jay
The field within your class should be set to ForeignKey. Try this: Object = models.ForeignKey(‘FacePng’, on_delete=SET_NULL, max_length= some_int) on_delete and max_length need to be set based on your requirements Sent from my iPhone > On May 6, 2019, at 11:28 AM, b...@tanners.org wrote: > >

Re: ORM help with INNER JOIN and GROUP BY

2019-05-06 Thread Kevin Jay
Maybe that was a typo? The foreignkey relationship would look like this: object = models.ForeignKey(FacePng'', max_length=128, blank=False, null=False, unique=True) On Mon, May 6, 2019 at 12:44 PM wrote: > Just want to make sure I understand. ForeighKeys need to be integers? > > Only integers?

Re: ORM help with INNER JOIN and GROUP BY

2019-05-06 Thread Kevin Jay
You are correct. Django creates a primary key of 'id' for each table as an integer by default. So foreignkey will reference that primary key which by default is an integer. If the primary key is changed to some other type, Django can still handle it. Apparently using integers is the more efficient

Re: Django wsgi apache Deploy project

2019-05-07 Thread Kevin Jay
Remove the spaces in the paths: WSGIPythonPath / var / www / html / ecommerce / should be WSGIPythonPath /var/www/html/ecommerce/ Do the same for the other paths On Tue, May 7, 2019 at 8:57 AM N'BE SORO wrote: > > Hi I'm a beginner in python and I realized a project in Django. I have > problem

Re: Write urls without regex in DRF

2019-05-22 Thread Kevin Jay
kevin@kjay,net On Wed, May 22, 2019 at 10:19 AM Rounak Jain wrote: > > I am using DRF Viewsets to auto-generate URLs for different views. Is it > possible to write the code below without using regex? > Thanks > > from .views import TaskViewSet > from rest_framework.routers import DefaultRouter >

Re: Populate script not working

2020-04-02 Thread jay sharma
Sir hi I am aman , look at following error message: django.contrib.auth.models.DoesNotExist: User matching query does not exist. So on this my suggestion is What you importing from django.contrib.auth.models first check that needed query is present at above or not... On Wed, Apr 1, 2020, 11:54

Need help in Django calculated field/queryset

2020-04-18 Thread Jay Prajapati
Hello Everyone, I need a help from you. I'm learning Django and working on my own project but got stuck on a point. Your inputs will be highly appreciated. Little background: I'm creating a web app like investment portfolio. I have created a model based form to input the stock transaction i.e.

Need help in Django calculated field/queryset

2020-04-18 Thread Jay Prajapati
Hello All, Hope you are doing well! I need a help. I'm learning Django and working on my own project but got stuck on a point. Your inputs will be highly appreciated. Little background: I'm creating a web app like investment portfolio. I have created a model based form to input the stock trans

Need help in Django calculated field/queryset

2020-04-30 Thread Jay Prajapati
Hello everyone, Still stucked on this pointHas anyone tried it? -- 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. T

Re: Static not working on unix while working on windows

2020-07-07 Thread Kevin Jay
I’ve had the same issue in the past. I fixed it by removing *rel="stylesheet * On Mon, Jul 6, 2020 at 1:20 PM ashish goyal wrote: > Hi All, > > I have created a django app on windows and have used bootstrap navbar n > other functions which are working good on windows. > > Same files I have impo

Re: Static not working on unix while working on windows

2020-07-07 Thread Kevin Jay
You also need to close your quote. On Tue, Jul 7, 2020 at 11:54 AM Kevin Jay wrote: > I’ve had the same issue in the past. I fixed it by removing > *rel="stylesheet * > > > On Mon, Jul 6, 2020 at 1:20 PM ashish goyal > wrote: > >> Hi All, >> >> I h

Help me with the view please

2020-09-08 Thread Dexterr Jay
My Models class Student(models.Model): name = models.CharField(max_length=200, null=True, blank=True) classroom = models.ForeignKey(‘Classroom’, on_delete=models.DO_NOTHING,blank=True, null=True) class Classroom(models.Model): name = models.CharField(max_length=40,blank=True, null=True) class Fe

Amazon.com API

2015-10-26 Thread jay . verstreater
First, I want to know if its possible to search for a product on Amazon.com and before returning the product cost, do a calculation and then spit out the result on my website. Can anyone explain in detail for an absolute beginner how this works? Thanks in advance! -- You received this message

models design for student result system

2020-12-04 Thread Dexterr Jay
[image: image.png] i need help with design of the above models for my student result system project -- 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+

Image Outside Intro

2021-04-15 Thread Jay Grace
We're trying to place and image outside of the intro on the bottom left of the screen over the parallax image. We could make a flowing image that stays on the bottom left but we would prefer a one time image on the first page/image only. Any assistance would be greatly appreciated. -- You re

Re: Project together

2023-11-26 Thread Jay Senkow
interested.Sent from my iPhoneOn Nov 26, 2023, at 2:46 PM, ekong, emmanuel wrote:I am interestedPhone ( WhatsApp): +234-8071-505-514On Thu, 23 Nov 2023 at 7:13 PM, Youssef Bachraoui wrote:Hi developer i search to make a group on WhatsApp to begin a project together a

Re: How can i share one Database Sqlite between 2 app on pythonanywhere

2019-09-04 Thread Jay Vasant
It isn't possible to share a local db between two apps. Here are the alternatives you can use: - Create api's for all the operations you want to perform. - Use an hosted db service(e.g. Postgres on heroku). On Wed, Sep 4, 2019 at 10:39 AM Balaji Shetty wrote: > Hi Everyone > > Can anybo

Re: ForeignKey value while querying the model object

2019-09-05 Thread Jay Vasant
Please reply with your models schema. On Thu, Sep 5, 2019 at 7:56 AM dev wrote: > Hi All, > > How to get the ForeignKey value while querying the model object. > > > > I was trying to query a model object "mla" to fetch a specific sets of > columns and its working fine but the field ForeignKey i

Re: Python +django

2019-09-13 Thread Kevin Jay
I also prefer text over video. However, Corey Schafer has an excellent video series that is really well done. He doesn’t waste time babbling or stumbling over words. He also provides a link to his github repo so you can let ok over the code. On Tue, Sep 10, 2019 at 8:19 PM 'Nicholas Hatch' via Dj

Re: Fedora 30 server (Configuring Postgresql with Django)

2019-10-29 Thread Kevin Jay
Does the user ‘garish.b’ have a system password? On Tue, Oct 29, 2019 at 10:38 PM hari49pf wrote: > Hi sir, > I didn't understood, can u elaborate, I am new to django, Plz, help me out. > > regards. > Harish.Bheemanpaly > > On Wednesday, October 30, 2019 at 1:21:50 AM UTC+5:30, sacrac wrote: >>

Re: Fedora 30 server (Configuring Postgresql with Django)

2019-10-29 Thread Kevin Jay
I meant to type ‘harish.b’ On Tue, Oct 29, 2019 at 11:37 PM Kevin Jay wrote: > Does the user ‘garish.b’ have a system password? > > On Tue, Oct 29, 2019 at 10:38 PM hari49pf wrote: > >> Hi sir, >> I didn't understood, can u elaborate, I am new to django, Plz,

Re: Constraints on a one-to-many relationship and related problems

2011-12-28 Thread Jay De Lanoy
I'd go for a separate table instead, with something like class BillingInfo(models.Model): customer = models.OneToOneField(Customer) billing_address = models.OneToOneField(Address) and then just have logic in the views and templates to account for existence/nonexistence of a gi

<    1   2   3   4   5   6   >