Re: tech newbie

2022-09-26 Thread Jay Jay
Hello bro, I hope you’re doing well? I’m a Jerry, a newbie in software development, I have basic knowledge in HTML, CSS, JavaScript and python and I really need a mentor who can help me through, so I can be very skill at it. I’ll love if you can be my mentor, I would really appreciate it. Thank you

Re: Installing Django 1.0.2...

2009-01-06 Thread Jay
t. In fact "viewing" the file causes an error (at least on my version winzip 7.0 SR-1). The simple work around is to create an empty file named __init__.py in "...\Django-1.0.2-final \django\utils". Now the command "setup.py install" works just fine. Jay On Dec 31 2008,

custom authentication backend not being used...

2009-08-19 Thread Jay
sword.split('$') return (getPHash(raw_pass , salt , False) == hash) def __str__(self): return self.email class Meta: db_table = 'users' ordering = ['email' , 'username' , 'date_joined'] verbose_name_plural = 'users' .

Re: custom authentication backend not being used...

2009-08-19 Thread Jay
Sorry, nevermind. I finally figured this out right after I posted this. On Aug 19, 12:48 pm, Jay wrote: > First off, I'm using Django 1.1. > > I've been having problems getting my custom authentication backend to > work, specifically in the "admin" site. > &

list_display_links wont accept a callable

2009-02-25 Thread Jay
Hey Guys: Wondering if I can get some advice/help. I'm trying to alter the admin in a simple way so that instead of the first column (by default) be linked to the change screen I want to create a callable property and use that as the change screen link. Here is my code: class SubmissionAdmin(a

Re: How to customize field to get the correct python value?

2009-09-26 Thread Jay
fetch. (values(), only(), .etc.) I cannot find any material to make it smarter. So I wonder if I missed something or it is just a Django bug as to_python is not called? BRs/Jay On 9月25日, 上午10时39分, "jay.sh...@gmail.com" wrote: > Hi there, > > I have a question on customize the

Re: Passing parent with multiple childs from View to HTML

2009-09-27 Thread Jay
In Django template, you can make methed call. So you can pass the auther object to the template, then {% for book in auther.books.all %} {% for section in book.sections.all %} {% end for %} {% endfor %} The ordering is using the definition in the Model Meta class.

Re: Help on query

2009-09-30 Thread Jay
Use the aggregation way: user.report_set.annotate(count = Count('report_set')).filter(count = 1) On Sep 29, 10:39 pm, luismmontielg wrote: > yeah, something like that is what I want, but to me, that is not the > best way of doing it ... > Maybe there's a simpler way? > > thanks in advance > > On

Re: Keeping request.GET keys

2009-09-30 Thread Jay
I do not quite follow your statement. Do you mean redirect (request.get_full_path())? On Sep 30, 10:47 pm, "bax...@gretschpages.com" wrote: > I'm passing through a testcookie function and would like to keep the > request.GET keys > > so if the original URL is /testcookie/?foo=1&bar=2 > > Whe

Re: how do you build an html website in python?

2010-04-17 Thread jay
concepts in Django. Happy coding! Jay On Sat, Apr 17, 2010 at 3:27 PM, codecub wrote: > that's really unhelpful dude, i read through that and it doesnt even > help at all thats for software/applications not websites > > -- > You received this message because you are subs

python / django demand

2015-04-21 Thread Jay
Just curious if any long time python / django developers have seen an increase in the demand/growth/popularity of these skills? I run a dev team of python/django/aws developers building an ecommerce website and was curious about what people think the future brings for this stack. Continued imp

Re: python / django demand

2015-04-22 Thread Jay
thank you, good info. On Wednesday, 22 April 2015 05:10:48 UTC-6, mlvora.2010 wrote: > > Hey Jay, > > I am Malhar Vora from India. I may not be a proper person to answer to > your question as I don't have much experience but since 5-6 years I am > observing that P

At what point does a model get its own app? Wigging as I try to adjust to the Django way.

2008-04-23 Thread Jay
I'm working on a project which for the purposes of this conversation we could say is about authors writing and sharing books. My tendency is to want to make an app called "people" and an app called "books," as these are two different models in my mind. A person has certain attributes which would

Re: At what point does a model get its own app? Wigging as I try to adjust to the Django way.

2008-04-23 Thread Jay
people. (The same could be > said about the books.) > > Another reason to have 2 apps for these models is overall growth of > models.py. The more code that's there, the harder it becomes to edit. > (I'm in the process of parceling out a bunch of models myself. Don

Grrr, can't import custom template tag

2008-04-27 Thread Jay
Hi, all. I think I have an uncommon problem here--I've been looking into it for hours, and it's driving me crazy. I'm trying to install a custom paginator template tag in Django revision 7403. I'm getting the error message: 'paginate' is not a valid tag library: Could not load template library

Re: Grrr, can't import custom template tag

2008-04-27 Thread Jay
"license" for more information. >>> from django.template import Template >>> t = Template('{% load paginate %}') >>> So I can load it in the shell but not in my template file. Hmm. On Apr 27, 8:35 pm, Jay <[EMAIL PROTECTED]> wrote: > Hi, all

Re: Grrr, can't import custom template tag

2008-04-28 Thread Jay
id Reynolds <[EMAIL PROTECTED]> wrote: > On 28 Apr 2008, at 1:35 am, Jay wrote: > > > And I think that's it.  This is really driving me crazy.  Is there > > anything I'm forgetting?  Anything obvious?  I would be extremely > > grateful if someone could give this a on

Passing a variable to forloop

2008-04-30 Thread Jay
Hi, guys. I'm working with a paginator templatetag, and I'm trying to apply a custom style to the current page. In the code below, page.number renders *outside* the forloop, but not *inside* the forloop. {{ page.number }} << this one renders, but the next page.number does not. {% for page in pa

Re: Passing a variable to forloop

2008-04-30 Thread Jay
Thank you-- I meant to include that. The template tag is here, unchanged: http://www.djangosnippets.org/snippets/673/ On Apr 30, 8:41 pm, Lucas Hazel <[EMAIL PROTECTED]> wrote: > On Wed, 30 Apr 2008 17:21:47 -0700 (PDT) > > > > Jay <[EMAIL PROTECTED]> wrote: > >

Re: Passing a variable to forloop

2008-04-30 Thread Jay
Thanks! You rock. On Apr 30, 9:37 pm, Lucas Hazel <[EMAIL PROTECTED]> wrote: > On Wed, 30 Apr 2008 17:48:54 -0700 (PDT) > > > > Jay <[EMAIL PROTECTED]> wrote: > > > Thank you-- I meant to include that.  The template tag is here, > > unchanged: >

Filter choices based on another selection in the Admin view

2007-02-28 Thread Jay
My application has companies and aircraft, where aircraft has a foreign key to a company. When a user is creating a trip, both a company and an aircraft can be selected from drop-down lists. I'd like to modify so that after the company is selected the choices for aircraft are only those aircraft t

file upload

2006-07-07 Thread Jay
Hi, Love Django! I can't figure out, however, how to upload files. The only examples I find are post-magic-removal. I'd ask on the irc channel, but I can't reach it. To make it as basic as possible, I just made a Supplement class with a foreign key to the logged-in User, and a FileField. I did

Re: Intermediary M2M admin troubles

2006-07-18 Thread Jay
27;] Which will sort the Ingredients in the Admin list, and in any related select boxes for that model by the field 'name'. Jay markguy wrote: > While I'm deep in the midst of this problem, I can't tell from the docs > how to sort the select box for ingredients and tha

Re: how to email a password

2006-07-18 Thread Jay
#x27;ll find all sorts of discussion about the best way to deal with these type of login and registration systems. What's best for your users is really up to you, but I strongly advise you to encrypt password information at all costs. Jay patrickk wrote: > thanks james ... your answe

Re: how to email a password

2006-07-18 Thread Jay
Most systems do, if they don't send the password, they send a time sensitive link (randomly generated and hard to guess) that will take the user to a password change form where s/he gets to enter a new one. James Bennett wrote: > (but please note that's just me personally; the PasswordResetForm

Re: Rails/Django comparison synopsis (a BIG summary)

2006-09-12 Thread Jay
I also agree with documentation in Django. I'm amazed when I began browsing for help files in the site. I did not expect that the docs there are massive. It covers a lot of WHY did this happen and HOW to make it happen. The help for Django has more ham compared to ruby on rails. I think if you com

Django & Movable Python

2006-10-24 Thread Jay
an that yet, so there may be further problems, but this should give anyone in a similar boat a place to start. Getting a database working on the USB stick is next. Jay --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: Django & Movable Python

2006-10-26 Thread Jay
ter. It's up there now, in the Installing Django section. Jay --~--~-~--~~~---~--~~ 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

Re: Django & Movable Python

2006-10-26 Thread Jay
e would be cool, too, although people usually have their favorites there. Personally, I'd be happy with a single bundle that provided everything needed to work with Django using the built in web server, regardless of which database was used. Jay --~--~-~--~~~---

Re: Printing model fields organized by category

2018-08-27 Thread Jay
ent in the database". Am I missing something? I will try to experiment a little more. On Monday, August 27, 2018 at 9:52:56 AM UTC-4, Matthew Pava wrote: > > Hi Jay, > > Firstly, I would avoid calling a model “Model.” Maybe “Product” would be > better? It’s only because of Djan

Re: Printing model fields organized by category

2018-08-27 Thread Jay
filter(status__exact='o').order_by('due_back') On Monday, August 27, 2018 at 11:00:57 AM UTC-4, Matthew Pava wrote: > > We need to see your view code. I’m assuming now that you don’t have > category_list in your context variable that you submitted to the template. > >

Re: Printing model fields organized by category

2018-08-27 Thread Jay
ike any other manager. > > > > *From:* django...@googlegroups.com [mailto: > django...@googlegroups.com ] *On Behalf Of *Jay > *Sent:* Monday, August 27, 2018 11:05 AM > *To:* Django users > *Subject:* Re: Printing model fields organized by category > > > &

Re: Printing model fields organized by category

2018-08-27 Thread Jay
t.all > > > > model_set is the manager. You need to treat it like any other manager. > > > > *From:* django...@googlegroups.com [mailto: > django...@googlegroups.com ] *On Behalf Of *Jay > *Sent:* Monday, August 27, 2018 11:05 AM > *To:* Django users > *Sub

Best way to organize custom admin views?

2019-11-22 Thread Jay
What's the best way (or the standard way, or your preferred way) to organize custom admin views? Assuming we want to leave the built-in Django Admin in place and create entirely new admin views, would the optimal organization be: *A new app?* blogapp/ views.py viewsets.py models.py shoppi

Better way that _meta to alter Admin?

2008-08-25 Thread Jay Parlar
ss site.register(User, MyUserAdmin) That works nicely, but I can't find the "right" way to do the _meta.get_field() stuff in NFA. Any thoughts? Thanks, Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: Strategies for staying current with django development

2008-08-25 Thread Jay Parlar
lly well, and fun to listen to. This is what I use to keep up to date, esp. when I have to take some time away from Django work. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: dumb question model-dictionary

2008-09-01 Thread Jay Parlar
r) > > foo = Foo.objects.get(pk=1) > foo.get_dictionary() > {'barfoo': 1, 'bar': 'bar value'} There might be a better way, but try taking a look at foo._meta._fields It does't give you exactly what you need, but the pieces are there. Jay P. --~--~--

Re: strategy for deploying to production server

2008-09-23 Thread Jay Parlar
hold all my database and media info, then I just have settings.py import them. The stuff common between environments lives in settings.py, and the custom stuff only has to live in one place. Jay P. --~--~-~--~~~---~--~~ You received this message because you are su

Re: time it takes django to read database?

2008-12-08 Thread Jay Parlar
Could you post your urls.py file for your blog app? It's very easy to make a mistake in there that results in confusing time-related errors. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Re: time it takes django to read database?

2008-12-09 Thread Jay Parlar
chive_year', dict(info_dict, > template_name='blog/list.html')), >(r'^$','archive_index', dict(info_dict, template_name='blog/ > list.html')), > ) Sorry, the problem I suspected isn't there, so I'm not sure what's going on

Re: time it takes django to read database?

2008-12-09 Thread Jay Parlar
gets used when pulling it from the db, you could run into issues here. Try passing allow_future=True in with the other arguments to the dict() Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Weird transaction issue in apache?

2009-06-25 Thread Jay Wineinger
I have an Order model and a Payment model (which FK's to Order as "payments"). I have a handler for post_delete on Payment which sends a custom signal which may do some updating on Order. The problem I'm seeing is that when I delete a Payment, the custom signal handler can still query for the de

Unusual Schema question

2009-02-23 Thread Jay Deiman
xtend the Manager class? I'm wondering what people with more experience would do for this situation. If the above is not clear, please let me know where I need to clarify. Thank you. -- Jay Deiman \033:wq! --~--~-~--~~~---~--~~ You received this message bec

Re: Unusual Schema question

2009-02-23 Thread Jay Deiman
cases to see if those have been resolved...most likely they have. The example of the "Comparison" Model in the second link is, at first glance, *exactly* what I am looking to do. I think I'm going to dig in tomorrow and experiment with this configuration, but it looks like this wil

Re: Unusual Schema question

2009-02-23 Thread Jay Deiman
gordyt wrote: > Jay I'm not sure if this would meet your requirements or not, but I > think you should take a look at this page concerning generic > relations: > > http://docs.djangoproject.com/en/dev/ref/contrib/contenttypes/#id1 Between this and the other link that Tim C

Re: Unusual Schema question

2009-02-24 Thread Jay Deiman
Jay Deiman wrote: > The example of the "Comparison" Model in the second link is, at first > glance, *exactly* what I am looking to do. I think I'm going to dig in > tomorrow and experiment with this configuration, but it looks like this > will be perfect for my need

Re: Unusual Schema question

2009-02-24 Thread Jay Deiman
Alex Gaynor wrote: > > > On Tue, Feb 24, 2009 at 2:10 PM, Jay Deiman <mailto:j...@splitstreams.com>> wrote: > > > Jay Deiman wrote: > > The example of the "Comparison" Model in the second link is, at first > > glance, *exactl

Custom filter() operators

2009-03-05 Thread Jay Deiman
I had the following Model, I could use something to the effect of Netblock.objects.filter(inet__cidrct="1.2.3.4") and get back a Netblock entry of "1.2.3.0/24", for example: class Netblock(BaseModel): inet = InetField() Thanks, Jay -- Jay Deiman \033:wq! --~--~-

Re: Custom filter() operators

2009-03-06 Thread Jay Deiman
g these quite extensively within my current project, I will be able to do code tweaking and testing, as well as some actual documentation, before submitting these to the Django upstream for inclusion. As noted previously, I think there would be a great benefit to allowing the easy addi

nested dereferencing of values within value calls in templates

2009-03-17 Thread Jay Deiman
mplish the above with a highly inefficient nested loop: Template code: == {% for item in list1 %} {{ item }}: {% for item2 in list2 %} {% ifequal forloop.counter0 forloop.parentloop.counter0 %} {{ item2 }} {% endifequal %} {% endfor %} {% endfor %} =

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

Fwd: InlineModelAdmin paging

2009-11-02 Thread Jay Coulter
27;, 'cc_expire_dt', 'cc_closed_dt', 'cc_frozen_dt', 'cc_card_printed'] Thanks! Jay --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Re: Django Tutorial 1.1: Viewing SQLite3 tables

2010-01-09 Thread Jay Godse
, Jay On Jan 7, 6:50 pm, wormser17 wrote: > Hello. First, some quick context about my approach (I am not a > programmer): > > This is the directory where I installed Django: /Library/Python/2.6/ > site-packages/django > This is my project directory: /Users/mlooby/Sites/mysite &g

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

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

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

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

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

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

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

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

  1   2   3   4   5   6   >