Re: Please help me

2017-05-29 Thread Marlysson Silva
The important it the content. Em segunda-feira, 29 de maio de 2017 10:07:58 UTC-3, gabriel.futionlabs escreveu: > > Django girls, am a guy > > On May 29, 2017 13:20, "Jani Tiainen" > > wrote: > >> Hi, >> >> If you feel that Django tutorial is too compact, Django Girls do have >> much more verbo

Re: Please help me

2017-05-29 Thread m712 - Developer
You just made my day. On 05/29/2017 12:52 PM, Opeyemi Gabriel wrote: > Django girls, am a guy > > On May 29, 2017 13:20, "Jani Tiainen" > wrote: > > Hi, > > If you feel that Django tutorial is too compact, Django Girls do > have much more verbose tutorial. >

Re: Please help me

2017-05-29 Thread Carlos Andre
https://docs.djangoproject.com/pt-br/1.11/intro/tutorial01/ 2017-05-29 17:58 GMT-03:00 m712 - Developer : > You just made my day. > > On 05/29/2017 12:52 PM, Opeyemi Gabriel wrote: > > Django girls, am a guy > > On May 29, 2017 13:20, "Jani Tiainen" wrote: > >> Hi, >> >> If you feel that Django

Tutorial writing views help

2017-08-11 Thread Kareem Hart
I am currently up to the "writing views" part of the tutorial and just wrote the polls/index.html template. I updated the view in polls/view.py as such: from django.http import HttpResponse from django.template import loader from .models import Question def index(request): latest_question_

HELP WITH THIS CODE!!

2017-10-19 Thread Giovanny ordoñez
<https://lh3.googleusercontent.com/-DU5sj0rEj_U/Wej3LYGwrFI/ABs/BUPLYjxoa7ILM0K4OEcdJEAKmS2j0zPFACLcBGAs/s1600/django.JPG> Hi guys!. i am new in this community. i need help with this code . is python using framework django. yo can say me, than do this code. -- You receive

Re: Django Newb Help

2016-03-18 Thread parker smith
I resolved this problem. On Wednesday, 16 March 2016 18:07:08 UTC-7, parker smith wrote: > > I can modify position and look of the {{ form.to }} with style="position: absolute;">{{ form.to }} tags and css but I don't > think that's the intention... > > On Wednesday, 16 March 2016 16:45:31 UTC-7,

Re: Django Newb Help

2016-03-19 Thread parker smith
I can modify position and look of the {{ form.to }} with {{ form.to }} tags and css but I don't think that's the intention... On Wednesday, 16 March 2016 16:45:31 UTC-7, parker smith wrote: > > Hello, > > I am working on the django by example book and in ch. 2 I am having issues > getting the re

Re: Django Newb Help

2016-03-19 Thread parker smith
Okay I figured this one out on my own...I just added the following code... new_comment.save() comment_form = CommentForm() - #(I added this line and it's working properly now) else: comment_form = CommentForm() On Wednesday, 16 March 2016 16:45:31 UTC-7, parker smith wrote: > > Hell

Help w/Transactions, select_for_update!

2016-03-22 Thread A Wall
Really hoping someone can help---didn't get any responses on stackoverflow, and django docs don't seem to give an exact answer. I have a bunch of views where I check if certain conditions are true before executing. I'm concerned about one user using a view that changes the

Re: Simple subprocess help

2016-03-25 Thread Mike Dewhirst
On 26/03/2016 1:05 AM, Joshua Valdez wrote: Okay, so I have figured out that the subprocess is the module that I want to use in this context and I have tried implementing some simple code based on the documentation but I am getting an |ExceptionType:OSErrorExceptionValue:[Errno2]Nosuch file or d

Re: Simple subprocess help

2016-03-25 Thread Mike Dewhirst
On 26/03/2016 1:05 AM, Joshua Valdez wrote: I'm very new to django Sorry I didn't pay attention to this part of your question ... To amplfy my response, this is the sort of thing I would do in the save method of the model: from wherever import run_pipeline class Query(models.Model): ..

Re: Simple subprocess help

2016-03-26 Thread Daniel Hepper
jango, Celery <http://www.celeryproject.org/> is probably most commonly used. There is a bit of setup involved, though. Cheers, Daniel P.S.: I just answered this question on StackOverflow. I'm reposting my answer here hoping that it might help anyone else. On Friday, March 25, 2016 at 7:03:10 PM UTC+1

Re: Help with django.

2016-04-19 Thread Jani Tiainen
Hi, you should start with tutorials, Django official: https://docs.djangoproject.com/en/1.8/intro/tutorial01/ Django Girls Tutorial: http://tutorial.djangogirls.org/ And finally on my list is Marina Mele's tutorial: http://www.marinamele.com/taskbuster-django-tutorial On 19.04.2016 14:23,

Re: Help with django.

2016-04-19 Thread Григор Колев
)My question is bed. I read docs of course. In another's Python frameworks I must write all classes to be used more than one time. I make Button and it's. If I need a button just call this class class MyChoiceField(forms.Form): def __init__(self, foo_choices, *args, **kwargs): super(M

Re: Help with django.

2016-04-19 Thread Григор Колев
I apologize for the mistakes, but function for insert a code is just terrible -- 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...@googlegro

Re: Help with django.

2016-04-19 Thread Григор Колев
сряда, 20 април 2016 г., 0:00:06 UTC+3, Григор Колев написа: > > )My question is bed. > I read docs of course. > In another's Python frameworks I must write all classes to be used more > than one time. > I make Button and it's. > If I need a button just call this class > > class MyChoiceField(fo

admin popup + button help

2016-04-20 Thread Giuseppe
I am trying to get a pop up that will let me create a new object to associate to a many to many relationship on a form/model. In the same way that it works in django-admin. I have been followed the instructions from here , and its no

Help with Aggregation / Annotation

2016-06-03 Thread Alex G
Hello all, I know this is probably a really simple question, but I've been trying to solve it for ages now and keep failing! I have two models: class Subject(models.Model): name = models.CharField(max_length=200) class Pupil(models.Model): first_name = models.CharField(max_length=200)

Re: Help me!!! django

2016-06-30 Thread Mario Gudelj
go, a form > https://postimg.org/image/8myn5jqnb/, but I'm new to this. Help, who than > can please > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving em

Re: Help with runserver

2016-11-19 Thread Alex Heyden
We'd need to see your settings file and maybe your top-level urls.py to answer it conclusively, but in general terms, some view that's been mapped to root on your project is returning that there JSON response. This is not a default Django behavior, or at least wasn't in 1.10 or earlier. On Sat, No

Re: Help with runserver

2016-11-19 Thread Asad Jibran Ahmed
Do you have debugging turned on (DEBUG=True in settings.py) in Django? If you do, you should see a pretty detailed stack trace and not just this. Also, in the console you should see a stack trace with the details of the error. Do you see those? Asad Jibran Ahmed http://blog.asadjb.com On Sun, No

Re: Help with runserver

2016-11-20 Thread NS
DEBUG is set to true, and I don't see any error messages. There is no trace in the console either. On Saturday, November 19, 2016 at 11:11:36 PM UTC-5, Asad Jibran Ahmed wrote: > > Do you have debugging turned on (DEBUG=True in settings.py) in Django? If > you do, you should see a pretty detail

Re: Help with runserver

2016-11-20 Thread NS
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.10.3. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/sett

Re: Help with runserver

2016-11-20 Thread Alex Heyden
Is there anything at mysite/urls.py? Also, how sure are you that you're actually hitting the Django server? If you turn off the Django server, do you get the same page? If you navigate to http://localhost:8000/ with runserver running, do you see the GET request in the console? On Sun, Nov 20, 201

Re: Help with runserver

2016-11-21 Thread NS
Update: I tried using port 8080 and now everything works! I think that something was using port 8000, but I'm not sure what. You were right, I tried localhost:8000 without the Django server on and and it had the same message. I did not hit the Django server. On Sunday, November 20, 2016 at 4:09

I need ur help.

2015-06-05 Thread Wandy Lau
ngo.contrib.messages.context_processors.messages', 'django.core.context_processors.static', ], }, }, ] I really can't find the the point. Please help with this. Thank you in advance. -- You received this message because you are subscribe

Help With Using ETAGS

2015-06-23 Thread Nikunj Badjatya
Hello All, What is the difference between setting ETAGS (USE_ETAGS=True)in django settings file vs setting ETAGS in nginx configuration ? Do one need to set at both the places or just one place is sufficient ? Thanks. -- You received this message because you are subscribed to the Google Gro

help with e-library

2015-06-26 Thread Mane Said
Dear all ,, I am new user for django and web programming I want to program e-library application which basically have some field related to books details and bar code and finally some information about people who gone to use it where is the best place to start and if you have any ideas plea

Need Django Help Again.

2015-07-22 Thread Steve Burrus
*I find myself in ned of help yet again w. django. Just to say parenthetically I have had this problem before. just what am I doing wrong with the command "**python .\Scripts\ django-admin.py startproject me" to consistently get this error message! Thanx to anyone who helps me. *

Help with UnaccentExtension migration

2015-10-11 Thread pusateri
I was trying to enable the unaccent postgresql extension using a database migration as hinted here: https://docs.djangoproject.com/en/1.8/ref/contrib/postgres/lookups/#unaccent I created an empty migration and then added the UnaccentExtension operation and ran the migration but the database com

Re: Ask for help

2015-11-19 Thread Proto
Can you post the migration file? It looks like one of the fields you're parsing for date doesn't like the data it's trying to parse (it's expecting a string type, but that may not be what it's getting), -- You received this message because you are subscribed to the Google Groups "Django users"

Re: help with ManyToMany

2016-01-27 Thread Xristos Xristoou
your code is correct,where are the problem ?in the admin first add Studio and sfter this select on the field studio from class studiogroup one or more entries from the class studio so simple, christos Τη Τετάρτη, 27 Ιανουαρίου 2016 - 5:50:21 μ.μ. UTC+2, ο χρήστης dave.l έγραψε: > > Hi, > > I h

Re: help with ManyToMany

2016-01-28 Thread dave.l
Hi, I am happy with my models, and I'm fine inserting data, what I would like help with is retrieval. given a single instance of a Studio() I can get studio.studiogroup_set.all() which I can then iterate to find the individual studios and build my resulting list ensuring no duplicate

Re: help with ManyToMany

2016-01-31 Thread Peter of the Norse
g data, what I would like > help with is retrieval. > > given a single instance of a Studio() I can get studio.studiogroup_set.all() > which I can then iterate to find the individual studios and build my > resulting list ensuring no duplicates and not 'studio' itself.

Re: help with ManyToMany

2016-02-02 Thread dave.l
pk=choice.pk) > > On Jan 28, 2016, at 2:16 AM, dave.l > > wrote: > > Hi, > > I am happy with my models, and I'm fine inserting data, what I would like > help with is retrieval. > > given a single instance of a Studio() I can get > studio.studiogroup_set.all

help with django-guardian

2016-03-03 Thread Joshua Chan
First off, I am new to both django and python. I am working on an existing project that is using django-guardian 1.3.2 There are existing admin.py files, which load just fine. #!/usr/bin/env python # coding: utf-8 from guardian.admin import GuardedModelAdmin from django.contrib import admin fr

help with django-guardian

2016-03-03 Thread Joshua Chan
First off, I am new to both django and python. I am extending an existing app. We have several admin.py files They all look like this: #!/usr/bin/env python # coding: utf-8 from guardian.admin import GuardedModelAdmin from django.contrib import admin from devices import models class SomeMode

Re: virtualenv help needed

2014-05-28 Thread carlos
.5. In my > application I have to place "media" folder inside > /usr/local/lib/[ython2.7/dist-package/django/contrib/admin/media but after > installating virtualenv I didn't find any django folder inside > dist-package. Can anyone help me out with this, how should I alloca

Re: virtualenv help needed

2014-05-28 Thread Kelvin Wong
r > installating virtualenv I didn't find any django folder inside > dist-package. Can anyone help me out with this, how should I allocate > proper path to it? > > Thank you. > -- You received this message because you are subscribed to the Google Groups "Django users

Re: virtualenv help needed

2014-05-28 Thread Lachlan Musicman
n2.7/dist-package/django/contrib/admin/media but after >> installating virtualenv I didn't find any django folder inside dist-package. >> Can anyone help me out with this, how should I allocate proper path to it? >> >> Thank you. > > -- > You received this mes

Re: HELP on unittest.loader.ModuleImportFailure

2014-06-08 Thread Kelvin Wong
using lists/tests.py. > The book uses the code: > $ python3 manage.py test > to run the test. > > However, the manage.py file sits in the upper superlists folder and the > tests.py sits in lists folder. > I keep getting an error message saying "ImportError: No modul

Re: HELP on unittest.loader.ModuleImportFailure

2014-06-08 Thread Kimitaka Nakazawa
ng lists/tests.py. >> The book uses the code: >> $ python3 manage.py test >> to run the test. >> >> However, the manage.py file sits in the upper superlists folder and the >> tests.py sits in lists folder. >> I keep getting an error message say

Re: HELP on unittest.loader.ModuleImportFailure

2014-06-08 Thread Kelvin Wong
Find out which versions you are using $ python --version Python 2.7.6 $ django-admin.py version 1.4.10 Try importing the lists app from the shell $ python manage.py shell Python 2.7.6 (default, Jan 13 2014, 04:26:18) [GCC 4.2.1 (Apple Inc. build 5577)] on darwin Type "help",

Re: HELP on unittest.loader.ModuleImportFailure

2014-06-08 Thread Kimitaka Nakazawa
go-admin.py version 1.4.10 Try importing the lists app from the shell $ python manage.py shell Python 2.7.6 (default, Jan 13 2014, 04:26:18)  [GCC 4.2.1 (Apple Inc. build 5577)] on darwin Type "help", "copyright", "credits" or "license" for more inform

Re: HELP on unittest.loader.ModuleImportFailure

2014-06-08 Thread Kelvin Wong
m > > > On 2014年6月9日 at 12:11:44, Kelvin Wong (wong...@gmail.com ) > wrote: > > Find out which versions you are using > > $ python --version > Python 2.7.6 > > $ django-admin.py version > 1.4.10 > > Try importing the lists app from the shell > > $ pyt

Re: HELP on unittest.loader.ModuleImportFailure

2014-06-09 Thread Kimitaka Nakazawa
Kim >> >> >> On 2014年6月9日 at 12:11:44, Kelvin Wong (wong...@gmail.com) wrote: >> >> Find out which versions you are using >> >> $ python --version >> Python 2.7.6 >> >> $ django-admin.py version >> 1.4.10 >> >> Try imp

Re: CSRF Token Help

2014-06-15 Thread Renato Oliveira
ver Code: > > https://github.com/JesterXL/workoutlogger/blob/master/server/workoutlogger/workoutapi/views.py > > HTTP Responses: > https://gist.github.com/JesterXL/b7fb18f30e80e0156c98 > https://gist.github.com/JesterXL/9c148016911622dfee66 > https://gist.github.com/JesterXL/8cfd

Re: CSRF Token Help

2014-06-15 Thread Jesse Warden
sterXL/workoutlogger/blob/master/server/workoutlogger/workoutapi/views.py >> >> HTTP Responses: >> https://gist.github.com/JesterXL/b7fb18f30e80e0156c98 >> https://gist.github.com/JesterXL/9c148016911622dfee66 >> https://gist.github.com/JesterXL/8cfd28edf6aebfe1afd4 >>

Re: CSRF Token Help

2014-06-15 Thread Andreas Kuhne
oggerDartAngular2/web/com/jessewarden/workoutlogger/ >>> login/LoginService.dart >>> >>> Server Code: >>> https://github.com/JesterXL/workoutlogger/blob/master/ >>> server/workoutlogger/workoutapi/views.py >>> >>> HTTP Responses: >&g

Re: CSRF Token Help

2014-06-15 Thread Jesse Warden
: >>>> https://github.com/JesterXL/workoutlogger/blob/master/client/ >>>> WorkoutLoggerDartAngular2/web/com/jessewarden/workoutlogger/ >>>> login/GetTokenService.dart >>>> >>>> https://github.com/JesterXL/workoutlogger/blob/master/client/ >

Re: CSRF Token Help

2014-06-16 Thread Andreas Kuhne
t;>> used to be able to disable web security on Chrome, but that doesn't seem >>>>> to >>>>> work anymore. >>>>> >>>>> Client Code: >>>>> https://github.com/JesterXL/workoutlogger/blob/master/client/ >>>>> W

Re: help with idea

2014-10-04 Thread Collin Anderson
If you change how your dictionary is formatted, it can be much easier: dicc_one = { 'string1': {'fieldsFK__total_one__gt': 0}, 'string2': {'fieldsFK__total_two__gt': 0}, 'string3': {'fieldsFK__total_three__gt': 0}, 'string4': {'fieldsFK__total_four__gt': 0}, } results = {} for k, v

Re: help with idea

2014-10-06 Thread carlos
Collin thank so much really help me! Cheers On Sat, Oct 4, 2014 at 11:09 AM, Collin Anderson wrote: > If you change how your dictionary is formatted, it can be much easier: > dicc_one = { > 'string1': {'fieldsFK__total_one__gt': 0}, > 'st

django-forms-builder help

2014-10-27 Thread Chris Meek
I have an app that uses django-forms-builder. I have got it to display the completed forms without the labels. How do I get it to match the labels next to the fields within my template. urls.py url(r'^forms/get/(?P\d+)/$', 'gws.views.form', name='form'), views.py def form(request, form_entry

ManyToManyField -- help with view?

2008-01-11 Thread matimba
I need some help with ManytoManyField Here is simplified version of my models class Person(models.Model): name = models.CharField(maxlength=20) class Company(models.Model): class Department(models.Model): persons = models.ManyToManyField(Person) company = models.ForeignKey

Re: template orderby help

2008-01-29 Thread Rajesh Dhawan
> > The &listing={{ request.GET.listing }} is the part im having trouble > with. > > In the url the following > appearshttp://testsite.com/?orderby=id&listing=test&keyword=&date_filter= > which does not work It's not clear what does not work. Do you get an error? What does the view that receive

Help filter with Admin

2008-02-03 Thread sanrioyt
d) I want to use the filter (which is awesome!!). However, I want to filter all students belonging to school A OR school B (with other filter criteria, on other columns (all ANDed). Can I do that with the django Admin? If so, how? Below is the actual model of my classes: I appreciate any hel

Re: template & forloop help

2008-02-08 Thread David Reynolds
plate? > > {% for div in divs %} > {{ form.name|forloop.counter }} > {% endfor %} > > If i just did it manualy like below it works fine > > {% for div in divs %} > > {% endfor %} > > Any help would be greatly appreciated. Does doing this do what you want?

Re: template & forloop help

2008-02-08 Thread Marcin Mierzejewski
e a way of using the %s %i in a template? > > {% for div in divs %} > {{ form.name|forloop.counter }} > {% endfor %} > > If i just did it manualy like below it works fine > > {% for div in divs %} > > {% endfor %} > > Any help would be greatly appreciated. --~--~

please help ForeignKey('Class')

2008-03-08 Thread nik
roup) I have had to put the Members class after the Group class because ive used a ManytoMany in the members class referencing the Group class can anyone help me please nik --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

some help with urls

2008-03-31 Thread Rishabh Manocha
^test/fullpath/(?P\w+)+/+" but none of these or the other combinations that I have tried have worked. They all just return private (in the 3'rd case) or throw a 404 error. Is it the case that urls with "/" in them will automatically be cut apart by Django or am I ju

More Advanced Forms Help

2008-04-05 Thread Chris Hartjes
Thanks to all who made suggestions before. Now I have another problem I have been unable to find a way to solve in Django. Here's the scenario: I have the variable games, which contains (oddly enough) games I have the variable stadium_forms, which contains a form for each game that displays a che

Need help loading template

2008-04-19 Thread Brandon Taylor
Hi everyone, In my urls.py, I'm matching: a slug from a foreign key / the year / month / day / pk of the record as such: from django.conf.urls.defaults import * from rdk.training.views import * urlpatterns = patterns('', (r'^$', list_seminars), (r'[

Re: Installing GeoDjango help

2008-05-22 Thread Ariel Mauricio Nunez Gomez
If you have ubuntu you can: sudo apt-get install mercurial hg clone http://geodjango.org/hg/where2.0/ cd where2.0/ubuntu more ubuntu_install.txt (Follow the instructions from step 5) Regards, Ariel. --~--~-~--~~~---~--~~ You received this message because you are s

Re: Installing GeoDjango help

2008-05-22 Thread Ariel Mauricio Nunez Gomez
BTW, you still have to follow the postgis database and user creation parts. --~--~-~--~~~---~--~~ 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 u

Re: Installing GeoDjango help

2008-05-22 Thread tlpinney
Hi Shabda, If you are using the where2 example you will need to use the gis- newforms mercurial branch. http://geodjango.org/hgweb.py/gis-newforms/ A sample project can be found here. http://geodjango.org/hgweb.py/where2/ Cheers, Travis On May 22, 7:42 am, "Ariel Mauricio Nunez Gomez" <[EM

simple python math help.

2008-06-15 Thread Jarred Bishop
Hi, this is driving me crazy. I'm sure there is a VERY simple solution but can't seem to find it. thanks for you help. if I have size = 200, 400 return size[0]/size[1] it returns '0'. which isnt much help. how do i get &#x

Fwd: help with fixtures

2008-06-15 Thread ristretto
nt=2 myapp > initial_data.json But, that json data doesn't have any users in it. The tests need users, so I'd like to have them in the fixture. Can some one shed some light please? -- Forwarded message -- From: "Russell Keith-Magee" <[EMAIL PROTECTED]> Date: Aug 24

Re: help with fixtures

2008-06-15 Thread Russell Keith-Magee
On Mon, Jun 16, 2008 at 11:36 AM, ristretto <[EMAIL PROTECTED]> wrote: > > I'm running into this too. Can someone confirm this related to MySQL > InnoDB tables or not? This is unrelated to MySQL or InnoDB (although that configuration will cause some difficulties with fixtures that have circular

Re: help with fixtures

2008-06-15 Thread Gene Campbell
Many thanks for a very helpful response!! At this point, I assume the proper practice is to create the users in a setup() method when unittesting instead of assuming they'll be brought up automatically when testing. (Sorry, it's been a long day - I hope that makes sense.) On Mon, Jun 16, 2008

Re: help with fixtures

2008-06-15 Thread Russell Keith-Magee
On Mon, Jun 16, 2008 at 2:43 PM, Gene Campbell <[EMAIL PROTECTED]> wrote: > > Many thanks for a very helpful response!! > > At this point, I assume the proper practice is to create the users in > a setup() method when unittesting instead of assuming they'll be > brought up automatically when testi

Re: Help with templatetags

2008-07-04 Thread Brian Luft
Have you tried restarting the development server? I've noticed that Django seems to cache template tag definitions when it starts up and won't pick up changes. They may have addressed this but I've gotten in the habit of just restarting the development server whenever I'm mucking around with cus

Re: Help with templatetags

2008-07-04 Thread mccomas . chris
Yeah I did. I actually tested it on my development server, also on a production server (actually restarted apache several different times)... On Jul 4, 2:22 pm, Brian Luft <[EMAIL PROTECTED]> wrote: > Have you tried restarting the development server? I've noticed that > Django seems to cache te

Re: Help with templatetags

2008-07-04 Thread Malcolm Tredinnick
On Fri, 2008-07-04 at 08:44 -0700, [EMAIL PROTECTED] wrote: > i setup a custom template tag for my index page called recent_news. > > i tried to setup a second template tag for the page called > more_news.py. the first is working as recent_news.py. > > recent_news.py gets the more recent entry,

RE: NEED HELP (Revised)

2008-07-16 Thread Kadusale, Myles
Help! The indentions of my code in my editor are ok I hope the code will not be distorted here again I am trying out Django but I get this error in my console C:\DjangoProj\UserApp>python manage.py syncdb Error: Couldn't install apps, because there were errors in one or mor

Re: NEED HELP BADLY

2008-07-17 Thread Juanjo Conti
In views.py you define as many python functions as cotrollers you want. Hech one has thsi signature: def view1(request, *args, **kwargs) You also have a urls.py file that maps urls to view functions. -- Juanjo Conti --~--~-~--~~~---~--~~ You received this messa

Re: NEED HELP BADLY

2008-07-17 Thread Joshua Jonah
ry ] [this is > where I put my javascripts ] > > > > > > Is this the best way to organize the files in Django? > > > > If you have comments, suggestion, anything please reply. > > Need some inputs about this. > > > > Also in a web cart s

Re: NEED HELP BADLY

2008-07-17 Thread TiNo
|- Media [ Directory ] [this is where > I put my images ] > > |- scripts [ Directory ] [this is > where I put my javascripts ] > > > > > > Is this the best way to organize the files in Django? > > > &

Re: NEED HELP BADLY

2008-07-17 Thread Dan
On Thu, Jul 17, 2008 at 10:53 PM, Joshua Jonah <[EMAIL PROTECTED]> wrote: > Is this the best way to organize the files in Django? > > Not important, it's personal taste. > Although, it is most of the time preferable to use regex group in your URLs rather than GET. It looks much nicer. --~--~---

RE: NEED HELP BADLY

2008-07-17 Thread Kadusale, Myles
PROTECTED] On Behalf Of Dan Sent: Friday, July 18, 2008 11:25 AM To: django-users@googlegroups.com Subject: Re: NEED HELP BADLY On Thu, Jul 17, 2008 at 10:53 PM, Joshua Jonah <[EMAIL PROTECTED]> wrote: Is this the best way to organize the files in Django? Not important, it's pe

Re: Streaming uploads help

2008-07-22 Thread Marty Alchin
On Tue, Jul 22, 2008 at 5:50 PM, Chris <[EMAIL PROTECTED]> wrote: > Right now I am simply doing this which obviously does not get the > directory structure that I want. > > PATH_ROOT = os.path.join(MEDIA_ROOT, 'event-photos', ph.name) > IMAGE_PATH = os.path.join('event-photos', ph.name) > destinat

Re: Help with queryset

2007-04-24 Thread Tim Chase
> I have queryset=Year.objects.all() > > But I want to limit that years in which event is not Null. > > I'm assuming I want something like Year.objects.filter(event != Null) I presume you mean Year.objects.filter(event__isnull = False) which you can read about at http://djangoproject.com

Re: Help with queryset

2007-04-24 Thread robin_percy
Not a dumb question, but one that has been answered in the Django docs. Have a look at http://www.djangoproject.com/documentation/db-api/#isnull It sounds like you want: Year.objects.filter(event__isnull=False) - Robin On Apr 24, 11:15 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'll a

Re: Help with queryset

2007-04-24 Thread robin_percy
Looks like my earlier reply got dropped. Sorry if this ends up being a double post. Check out the Model API docs: http://www.djangoproject.com/documentation/db-api/#isnull You want to do something like: Year.objects.filter(event__isnull=False) - Robin On Apr 24, 11:15 am, "[EMAIL PROTECTED]"

Re: Help with queryset

2007-04-26 Thread [EMAIL PROTECTED]
Looks like I had overlooked isnull. Thanks guys. On Apr 24, 5:06 pm, robin_percy <[EMAIL PROTECTED]> wrote: > Looks like my earlier reply got dropped. Sorry if this ends up being > a double post. > > Check out the Model API > docs:http://www.djangoproject.com/documentation/db-api/#isnull > > Y

Re: Help with limit_choices_to

2007-05-14 Thread Malcolm Tredinnick
On Mon, 2007-05-14 at 08:45 +, xgdlm wrote: > Hello all ! > > I have trouble using limit_choices_to on the following modele. I > searched the group and googled but I couldn't find the solution. > > Here is my modeles : > - > cla

Re: Help with limit_choices_to

2007-05-14 Thread xgdlm
Hello Thank you Malcolm for your fast answer (as usual) > However, you > cannot pass parameters to that function: it's mostly for use with things > like datetime.datetime.now -- where the result of the function does not > depend on "self" in any fashion. Hum, that what I understood, but now I

Re: Help with limit_choices_to

2007-05-15 Thread xgdlm
> At the moment, the easiest way I see to to that is to include a JS > file that will catch the current member_id, then call an external page > that will return a JSON string of > "Folder.objects.filter(member=member) " query_set and then build the > wished multiselected box .. I'll try that way

tests: best pactices help

2007-05-20 Thread Sandro Dentella
Hi again!, some "easy" questions to use tests in the best way. 1. 'manage.py test' finds unittest in tests.py *and* models.py. It doesn't seem to find docstring other that in tests.py. I pasted the Animal example in a model but no test was run till I put it into tests.py. Am

Custom Model Field Help

2007-06-01 Thread Sean
strange problem where any time I include this custom field in a model, that model no longer appears in the Django admin. There doesn't seem to be any errors in the field/model since I can use it with out problems from the shell. Any help or insight would be greatly apprec

Help Wanted at CritterWatch.Org

2007-06-14 Thread Bryan L. Fordham
e, please reply to me off-list. I haven't worked everything out just yet, but essentially you'd be screen-scraping your state legislature's website and putting the information into a standard format, which would be loaded into the database. Another way to help is to suggest new fe

Password Logistics Help Needed

2007-06-27 Thread Bryan Veloso
Long story short, I'm building a control panel + backend to an MMORPG. It runs off of a mySQL database, I used inspectdb, and all of that worked perfectly. However, now I have some duplicate data, the User model (since I'm using django-registration) and the account table of the inspected database.

Re: Model design help

2007-07-28 Thread oggie rob
ables, otherwise they are equivalent. In fact, if you have an existing M2M field you can convert it to this approach without much difficulty. HTH, -rob On Jul 28, 11:00 am, "Cole Tuininga" <[EMAIL PROTECTED]> wrote: > Hey all - I was hoping I could solicit some help with a m

Re: Model design help

2007-07-28 Thread James Bennett
On 7/28/07, Cole Tuininga <[EMAIL PROTECTED]> wrote: > I could do something like a simple many to many relationship in the > attendee model, but that doesn't indicate ordering (most preferred to > least preferred) per timeslot. You might want to look at thisL http://www.djangoproject.com/documen

Re: help with fixtures

2007-08-23 Thread Michael
Hi Alex, might be worth including the data.json output for people to take a look at. -Michael On Aug 24, 5:15 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have quite complex application and want to make test suite for it. > Since its complex, I need some data being populated first, so

Re: help with fixtures

2007-08-23 Thread Russell Keith-Magee
On 8/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Then, I am have exported data in all various formats, with hope that > one of them would work: > > ./manage.py dumpdata --format=python > data.python Python fixtures aren't really intended for use by end users - its an internal format t

Re: pycaptcha help needed

2007-08-28 Thread Pigletto
> Hi... I am using python2.5 with django 0.97 pre on windows xp.I am new > to this and I have to use captcha... I can't find any source. Can > anybody help? Thanking you all... I used this: http://svn.navi.cx/misc/trunk/pycaptcha/ I've defined my own, customized captch

Re: pycaptcha help needed

2007-08-28 Thread Iapain
try this one http://code.google.com/p/django-captcha/ On Aug 29, 11:12 am, Ani Nair <[EMAIL PROTECTED]> wrote: > Hi... I am using python2.5 with django 0.97 pre on windows xp.I am new > to this and I have to use captcha... I can't find any source. Can > anybody he

Re: pycaptcha help needed

2007-08-28 Thread Ani Nair
THANK YOU > It's working fine now.. . --~--~-~--~~~---~--~~ 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 grou

Re: FORMS help needed

2007-09-07 Thread AniNair
Thank you a lot. That was just what I wanted to know: about the url conf for get function. Thank you.. thank you... And is it similar in post? Once again, thank you a lot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

<    7   8   9   10   11   12   13   14   15   16   >