Re: date not saved in tutorial 2, a little more info

2007-05-04 Thread Mark Phillips
x27;classes': 'collapse'}), My error was due to referring to the attribute 'pub_date' in both lines of code. Removing it from the first line resolved the problem. Sorry for the noise. - Mark On May 4, 2007, at 12:30 PM, Mark Phillips wrote: > > On May 4, 2007,

Re: loaddata issue

2007-05-04 Thread Mark Jarecki
ame"); CREATE UNIQUE INDEX "Guide_venue_venueSlug" ON "Guide_venue" ("venueSlug"); COMMIT; and here is the minimal data file that fails: cat test.json [{"pk": "1", "model": "Guide.venuetype", "fields": {&q

Re: Mac OS X + Django; how do I invoke the fcgi?

2007-05-05 Thread Mark Phillips
does not agree with the tutorial. My result says "No module named view.detail". - Mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

django.loc/admin is not found

2007-05-06 Thread Mark Phillips
doesn't seem like a good idea. I assume the original directive is in many django files. I hadn't changed the links in /usr/bin for fear of upsetting some other application on the server. I am not sure what to do in this case. Advice from this list wou

Re: Mac OS X + Django; how do I invoke the fcgi?

2007-05-06 Thread Mark Phillips
eworks/Python.framework/Versions/2.4/lib/python2.4/lib- dynload', '/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site- packages'] I posted another today, "django.loc/admin is not found". In I describe a circumstance that makes me wonder if the fast cgi is

Re: loaddata issue

2007-05-06 Thread Mark Jarecki
Hi Russ, Thank you for all your help, I renamed my app name and it works fine at the moment. I posted a ticket (I hope its ok, my fist one) #4231. Thanks again, Mark. On 06/05/2007, at 10:21 AM, Russell Keith-Magee wrote: On 5/5/07, Mark Jarecki <[EMAIL PROTECTED]> wrote: > &g

modifying shebang reference in django 0.95.1

2007-05-08 Thread Mark Phillips
to #!/usr/local/python Is there any serious problem with this? - Mark --~--~-~--~~~---~--~~ 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@googlegro

Re: modifying shebang reference in django 0.95.1

2007-05-08 Thread Mark Phillips
On May 8, 2007, at 7:55 AM, Jens Diemer wrote: > You must only change the shebang in your "init/index" python > script. The > Handler file. Thank you. I am not familiar with the "init/index" python script. C

Re: modifying shebang reference in django 0.95.1

2007-05-08 Thread Mark Phillips
tables. Are any of these the file you refer to? - Mark --~--~-~--~~~---~--~~ 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 unsubsc

string index out of range

2007-05-11 Thread Mark Phillips
file. 127.0.0.1 localhost mydjango.mysite.com 255.255.255.255 broadcasthost ::1 localhost Critique, links and suggestions warmly accepted. - Mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &

Re: string index out of range

2007-05-12 Thread Mark Phillips
On May 11, 2007, at 9:40 PM, Malcolm Tredinnick wrote: > More information is definitely needed here. You've just done the > equivalent of "I've had a car accident." "Where should we send the > auto > service?" "There's a traffic light here." Thanks for the reply, Malcolm. --~--~-~--~

trouble using fastcgi

2007-05-12 Thread Mark Phillips
(61)Connection refused: FastCGI: failed to connect to server "/Library/WebServer/CGI-Executables/django.fcgi": connect() failed [error] FastCGI: incomplete headers (0 bytes) received from server "/ Library/WebServer/CGI-Executables/d

Re: Malformed header from script.

2007-05-12 Thread Mark Phillips
u > need to be registered for that... > > Any ideas what is causing it? I didn't try posting the forum but I did visit the web site and click on a couple of tags in the cloud. Got a list of posts, no error message. hth, - Mark --~--~-~--~~~---~--~--

Re: string index out of range

2007-05-12 Thread Mark Phillips
e") TypeError: runfastcgi() got an unexpected keyword argument 'method' Any ideas? - Mark On May 12, 2007, at 10:23 AM, Don Arbow wrote: > > You stated you got a python traceback and yet you only show us the > error message. What Malcolm was trying to say was that it wo

Re: string index out of range

2007-05-13 Thread Mark Phillips
go.fcgi", I get the trace back later in this note. In case it is related, when I start the server, I see in the error log a FastCGI error "access for server failed: write not allowed". - Mark Content of trace back in browser: /usr/local/bin/build/bdist.macosx-10.4-fat/egg/

Cannot resolve keyword '___' into field

2007-05-13 Thread Mark Jarecki
Hi, Im currently at a loss about how to fix this issue. I have tried the modpython.patch in #1796. What is weird is that the doesn't consistently appear - it is intermittent. When I refresh the page it sometimes appears as it should, and other times with the error. I'm running the latest Dja

ImportError: No module named mysite.settings

2007-05-14 Thread Mark Phillips
Decided to try a clean slate. Set up Django on SME Server 7.1, which is based on Centos 4. Compiled and installed mod_python Amended httpd.conf as follows: LoadModule python_module modules/mod_python.so and later on in the file... SetHandler python-program PythonPath "['/usr/local/m

Re: ImportError: No module named mysite.settings

2007-05-14 Thread Mark Phillips
ed another one: no module named mysite.urls. Many thanks for the advice, Steven and Malcolm. Happy days, - Mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Can't connect to MySQL

2007-05-14 Thread Mark Phillips
s.py", line 170, in __init__ _mysql_exceptions.OperationalError: (2003, "Can't connect to MySQL server on '127.0.0.1' (111)") The user and database referenced in settings.py exists in mysql. Perhaps I overlooked or misunderstand a config for mysqldb? TIA, - M

Re: Cannot resolve keyword '___' into field

2007-05-14 Thread Mark Jarecki
Just to let you know, the code below works fine on the development server. I've now tried all the patches and the error still persists. Are there any suggestions? Cheers Mark On 14/05/2007, at 1:33 PM, Mark Jarecki wrote: > Hi, > > Im currently at a loss about how to fix thi

Re: Cannot resolve keyword '___' into field

2007-05-14 Thread Mark Jarecki
ment server which is running OSX. Suggestions? On 15/05/2007, at 9:42 AM, Mark Jarecki wrote: > Just to let you know, the code below works fine on the development > server. > > I've now tried all the patches and the error still persists. Are > there any suggestions

Re: Cannot resolve keyword '___' into field

2007-05-14 Thread Mark Jarecki
for icon in icons: if Products.objects.filter(id=product.id, productOSIcons=icon, isPublished=True): osIcons2.append(icon) Which is a REALLY ugly solution, but hopefully I wont have to use it for too long. Mark. On 15/05/2007, at 3:15 PM, Mark Jarecki wrote: I'm not su

Re: Can't connect to MySQL

2007-05-15 Thread Mark Phillips
ss it via command line and phpMyAdmin. I believe the settings are correct but I will double check the settings.py when the coffee begins its wonderful task in my grey matter. Mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: ImportError: No module named mysite.settings

2007-05-15 Thread Mark Phillips
On May 14, 2007, at 7:41 AM, ilDave wrote: > Check the permissions of the directory where your app lives, it has to > be readable by the webserver. Good suggestion. I think it is root:wheel 755 but I will check. - Mark --~--~-~--~~~---~--~~ You receive

Re: Can't connect to MySQL

2007-05-15 Thread Mark Phillips
On May 14, 2007, at 10:37 AM, badger17 wrote: > Are the port and host settings correct in > settings.py ? In settings.py I had the host as "127.0.0.1". I changed that to an empty string, and the connection succeeded. T

Re: trouble using fastcgi

2007-05-22 Thread Mark Phillips
time to rebuild the os x server. Happy days, - Mark --~--~-~--~~~---~--~~ 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 unsubscri

Re: Cannot resolve keyword '___' into field

2007-05-31 Thread Mark Jarecki
written. I would like to go through the admin and apply my fix to it. I'm just wondering what files I would have to look through. Do I only have to go through the django/contrib/admin/ folder and all the files in it? Regards, Mark. On 15/05/2007, at 7:33 PM, Malcolm Tredinnick wro

Re: choices/ and getting rid of the dashes?

2007-09-23 Thread Mark Green
Thanks for the pointer. This does indeed change the default value to 'Male' but the select-box still offers the dashes... I want to eliminate the dashes-option completely, why give the user a choice that will never be accepted? -mark On Mon, 2007-09-10 at 06:47 +, Ryan wrote: >

how to implement "stay logged on this computer until i log out"?

2007-09-23 Thread Mark Green
(remove expiry). Is there anything in the API to implement that or can I get at the session-cookie meat to do it manually? I basically need to override the default from SESSION_COOKIE_AGE for individual sessions. -mark --~--~-~--~~~---~--~~ You received this

Re: how to implement "stay logged on this computer until i log out"?

2007-09-24 Thread Mark Green
> http://www.google.com/url?sa=t&ct=res&cd=4&url=http%3A%2F%2Fgroups.google.com%2Fgroup%2Fdjango-users%2Fbrowse_thread%2Fthread%2F7b65ff5783f71b9c%2Fa4079aa60e7dfa37&ei=GFT3Ro7tOKGegAPn49C_BA&usg=AFQjCNHCE35TvLu4ZdYy1SklwYZh8b_wqg&sig2=fPsOuIxzECnESDy_ZtHWqg > > -joe > &g

Re: choices/ and getting rid of the dashes?

2007-09-26 Thread Mark Green
s added or not to a form is a bit above my head. could it be that the dash-option just cannot be disabled in current django? if so i'd love to see that fixed as i fear i'm not capable to patch it myself properly. -mark On Fri, 2007-09-07 at 01:31 +0200, Mark Green wrote: > Hi all

Re: Two newform best practice questions

2007-09-26 Thread Mark Green
option in settings.py defaulting to False. -mark On Wed, 2007-09-26 at 01:29 -0500, Joseph Kocherhans wrote: > On 9/26/07, Przemek Gawronski <[EMAIL PROTECTED]> wrote: > > > > I'm using several forms (newforms) to build one html form. One thing to > > watch out for is

Re: Two newform best practice questions

2007-09-26 Thread Mark Green
On Wed, 2007-09-26 at 23:56 -0500, Joseph Kocherhans wrote: > On 9/26/07, Mark Green <[EMAIL PROTECTED]> wrote: > > > > I say thanks for the pointer, too. > > A quick question (since you seem to be involved with this), is there any > > reason to have django not

how to do something at startup

2007-09-28 Thread Mark Green
hi all, i'm looking for a way to perform a bunch of initialization tasks right after django startup. where would i put such things and how/when are they called? -mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread Mark Green
On Fri, 2007-09-28 at 22:29 -0500, James Bennett wrote: > On 9/28/07, Mark Green <[EMAIL PROTECTED]> wrote: > > i'm looking for a way to perform a bunch of initialization tasks > > right after django startup. > > There really is no such thing as "Django start

Re: how to do something at startup

2007-09-30 Thread Mark Green
On Fri, 2007-09-28 at 22:34 -0600, staff-gmail wrote: > James Bennett wrote: > > On 9/28/07, Mark Green <[EMAIL PROTECTED]> wrote: > > > >> i'm looking for a way to perform a bunch of initialization tasks > >> right after django startup. > &

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread Mark Green
On Sun, 2007-09-30 at 16:16 -0500, James Bennett wrote: > On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote: > > Hm, this raises some serious scalabity questions for me. > > >From your description it sounds like there is no template > > fragment caching, not even

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread Mark Green
On Sun, 2007-09-30 at 20:29 -0500, James Bennett wrote: > On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote: > > My question was really only about the former, a much simpler problem: > > How to keep a tcp connection persistent and re-use it across requests? > > By

Re: how to scale (was: how to do something at startup)

2007-09-30 Thread Mark Green
On Sun, 2007-09-30 at 20:37 -0500, James Bennett wrote: > On 9/30/07, Mark Green <[EMAIL PROTECTED]> wrote: > > I'm not sure what drove me to call it "fragment caching". > > What I really meant to point at are the little things (such as > > form_for_mo

Re: Should Django have a road map?

2007-10-01 Thread Mark Green
ot really inviting to give or take yet another drop. A little more structure and clustering would provide much better positive feedback to the contributor here. It just *feels* better to close ticket 6 of 10 on a Sub-Goal, pushing it from 50% to 60%, than to close one random ticket out of hundreds wit

choices/, how to get rid of the dashes?

2007-10-02 Thread Mark Green
rm with initial={ 'gender':'m' } at least sets the default option correctly (default='m' on the model is happily ignored btw, why?) but the dashes are still there. It obviously doesn't make sense to offer an option to the user that they aren&#x

image/file uploads, custom filenames, security

2007-10-16 Thread Mark Green
hen expanded to bitmap) would it be feasible to subclass ImageFile and replace the PIL calls with some paranoid homegrown stuff (i.e. ImageMagick), anyone know a starting point for this? -mark --~--~-~--~~~---~--~~ You received this message because you are su

Re: image/file uploads, custom filenames, security

2007-10-17 Thread Mark Green
On Tue, 2007-10-16 at 10:18 -0400, Marty Alchin wrote: > I've done some work on FileField lately that address some of your concerns. > > On 10/16/07, Mark Green <[EMAIL PROTECTED]> wrote: > > * does django properly sanitize the filename or rather, use > > safe

Re: Passing the max_length from the Model into the Form

2007-11-23 Thread Mark Green
On Fri, 2007-11-23 at 14:59 -0800, leotr wrote: > Yes, not only it's dirty but it's ineffective as well! And your idea violates DRY. > Declare a constant somewhere and use it in both model and form. And where would that "somewhere" be? Custom constants on the model? I see no point in adding in

hierarchical constraints (country/city) and form validation?

2007-12-01 Thread Mark Green
boilerplate code and I'm convinced there must be a much more elegant way to solve this all at the model level. I have the country/city relation in the database already, so it's just a matter of instrumenting it properly within django. Can someone set me on the right track? :) -mark

defaults for foreign keys

2006-10-10 Thread Mark Hattarki
If one has an object like so: class bug((models.Model): #... status = models.ForeignKey(Status) No --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djang

Re: defaults for foreign keys

2006-10-10 Thread Mark Hattarki
ata.keys()) #return HttpResponse(out) else: errors = new_data = {} form = forms.FormWrapper(manipulator, new_data, errors) return render_to_response('mergemanager/merge_request_submit.html', {'form' : form}) The save always fails telling me that

Re: defaults for foreign keys

2006-10-11 Thread Mark Hattarki
that the example code you gave is an update, not an insert? Also, I don't pass a parameter to the manipulator like the example does. I'm not sure what that does. But, it doesn appear to be related. namaste, Mark On 10/11/06, nilkram <[EMAIL PROTECTED]> wrote: > > Hi, > >

Nesh Thumbnail - Installation problem

2006-11-06 Thread Mark Jarecki
umbnail as opposed to: class Meta: and class Foo(models.Model): Cheers and thanks in advance! Mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email t

Re: Nesh Thumbnail - Installation problem

2006-11-06 Thread Mark Jarecki
Thanks guys Ended up that the Python Imaging Library was not correctly installed. It all works now! Cheers On 07/11/2006, at 2:15 AM, Nebojsa Djordjevic wrote: * Frankie Robertson wrote, On 06.11.2006 12:59: > On 06/11/06, Gabriel Puliatti <[EMAIL PROTECTED]> wrote: >> On Mon, 2006-11-06 a

Foreign Keys and upload paths

2006-11-08 Thread Mark Jarecki
Hi allI'm trying to use the value of a foreignkey as an input to the "upload_to" path of an image field (note I'm using ImageWithThumbnailField and it works properly when upload_to='Images/'). But i can't seem to form a proper string to enter. The images load into folders with names such as: When a

Re: Hello all. Tutorials for PHP refugee moving to Django...?

2007-01-11 Thread Mark Rodriguez
Thanks all. I've just jumped into the Django Book! On 1/11/07, Joseph Heck <[EMAIL PROTECTED]> wrote: > > Head to the tutorials at http://www.djangoproject.com/documentation/ and > work through them. Once you're done with that, take a look at > http://www.djangobook.com/ > > -joe > > On 1/11/07, [

Re: how to do SQL SUM

2007-01-14 Thread Mark Striebeck
Hey, that's exactly what I needed too. But when I tried it, I got a OperationalError: (1140, 'Mixing of GROUP columns (MIN(),MAX(),COUNT()...) with no GROUP columns is illegal if there is no GROUP BY clause') I'm using MySQL - maybe I need a different syntax there. But I can easily use SUM direc

For Loops

2007-01-16 Thread Mark Jarecki
don't know what to put there. I originally thought ".forloop.counter0" but that doesn't work. Any ideas on how to go about this? Cheers Mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: For Loops

2007-01-16 Thread Mark Jarecki
On 17/01/2007, at 11:40 AM, Zak Johnson wrote: Mark Jarecki wrote: I imagined replacing it with something like: {% for date in Date_List %} {{ Date_List.NotSureWhatToPutHere }} {% endfor %} Much like Python loop syntax: {% for date in Date_List %} {{ date }} {% endfo

Re: For Loops

2007-01-16 Thread Mark Jarecki
Replaced the dictionary in the views.py with a list and all was fine. Thanks Mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: No Model Inheritance in Magic-Removal?

2006-05-30 Thread Mark Striebeck
what has been discussed for two months? that model inheritance will not longer be supported? or that there is a alternate way to support the concept? (i just subscribed to this list a few days ago but have the same issue as daniel)     MarkS Douglas Campos wrote: it has been discussed her

Choosing label in Admin autocomplete_fields widget

2021-12-13 Thread Mark Rossetti
In Django 3.1, we were using autocomplete_fields on Admin edit pages with some foreign keys. To improve usability, we had overridden ModelAdmin.autocomplete_view so that it would provide us with human-readable labels. Very similar to the question and solution in this Stack Overflow post: http

Looking for Recommendations for a Django Photo Gallery

2022-01-24 Thread Mark Phillips
has all the albums and photos in named directories on the file system, so I would like, if possible, to have the new photo gallery use the same directory structure. There are so many django photo galleries that I am not sure what is good and what isn't. Thanks for your recommendations!

Having Trouble Creating a Test Database

2022-06-07 Thread Mark Phillips
create-django-test-database if anyone can help. Thanks! Mark -- 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.

Re: Having Trouble Creating a Test Database

2022-06-07 Thread Mark Phillips
Yes. All migrations have been done. On Tue, Jun 7, 2022, 9:01 AM Sebastian Jung wrote: > Do you have make manage.py migrate and afzer this manage.py makemigrations? > > Mark Phillips schrieb am Di., 7. Juni 2022, > 17:02: > >> I can't seem to be able to create a t

External Authentication with username in header

2022-07-15 Thread Mark Glass
I would like to change the link that opens a Django app. Currently the app is launched with GET http://localhost:8000. I would like to include a username and password in the header. The header would be intercepted somehow (Middleware?) and the user marked as authenticated. The app will then lau

Re:Thanks

2022-07-28 Thread Mark Odoyo
Thanks On Fri, Jul 22, 2022, 7:49 PM Gerardo Palazuelos Guerrero < gerardo.palazue...@gmail.com> wrote: > I'm watching this series, it might help you understand. > > Python & Django 3.2 Tutorial Series > > https://www.youtube.com/watch?v=SlHBNXW1rTk&list=PLEsfXFp6DpzRMby_cSoWTFw8zaMdTEXgL > > --

Re: Forbidden (403) - CSRF verification failed. Request aborted.

2022-11-25 Thread Mark Gensler
Try adding your ngrok domain to the list of CSRF_TRUSTED_ORIGINS: https://docs.djangoproject.com/en/4.1/ref/settings/#csrf-trusted-origins E.g. assuming you're using https: CSRF_TRUSTED_ORIGINS = ["https://*.ngrok.io";] On Wednesday, November 23, 2022 at 2:22:14 PM UTC dhana...@gmail.com wrote:

TabularInlineAdmin queries waaaaaayyyyyy too much.

2023-02-02 Thread Mark Jones
I have an admin with 1 row in the tabular inline. I have a custom queryset in class ExtensionTabularInlineFormSet(BaseInlineFormSet): def get_queryset(self) -> QuerySet[Extension]: qs = super().get_queryset() This gets called 20 times to display that one row. When you have more ro

ORA-00918 error (column ambiguously defined) Django 4.1

2023-03-07 Thread Mark McWiggins
We're getting this Oracle error from the Django line: File "/home/aotemp/myvenv/lib/python3.8/site-packages/django/db/backends/utils.py", line 89, in _execute return self.cursor.execute(sql, params) File "/home/aotemp/myvenv/lib/python3.8/site-packages/django/db/backends/oracle/base.py",

URL pattern problem

2023-03-13 Thread Mark McWiggins
;, views.depot_device, name='depot'), But when the system sends in a URL like: *devices/show/a100038596* I get NoReverseMatch on the pattern above (which works for other URLs in the system, so just changing it doesn't work.) Can you provide an additional pattern that will work

Re: Speficy a Database for Testing

2012-02-08 Thread Mark Furbee
Denis Darii already answered this on February 1st: "You can redefine your database connection by adding somewhere at the end of your settings.py something like: import sys if 'test' in sys.argv: DATABASES = ... hope this helps." Did you try this? On Wed, Feb 8, 2012 at 7:19 AM, xina tow

Re: Speficy a Database for Testing

2012-02-08 Thread Mark Furbee
e the unit tests are performed. I assume the reason you want to use a previously, externally created DB is that you want to test based on the data in that DB. If this is the case, it is perfect to use a fixture of that DB's data. Mark On Wed, Feb 8, 2012 at 7:42 AM, xina towner wrote: > Yes

Re: Models inheritance in django: how to change PK "_ptr_id" on "id"?

2012-02-09 Thread Jean-Mark
You can also use the south application to manage migrations. pip install south Then add 'south' to the list of installed apps. To start off you can do ./manage.py schemamigration --initial appname ./manage.py migrate appname Then whenever you make a change to your models: ./manage.py schemamigra

Re: Can anyone please explain the following settings?

2012-02-09 Thread Jean-Mark
You can have a look here for Django's docs on these... https://docs.djangoproject.com/en/dev/ref/settings/ https://docs.djangoproject.com/en/dev/topics/files/ The media stuff are for where files are stored typically after upload. So for example, there's the ImageField that you can use as a field o

Re: [ANN]: FeinCMS v1.5.0.rc1

2012-02-16 Thread Mark Renton
Great news! Happy to see the new version comes out ASAP. However, with the deprecate of old style patch of 3rd app URL reverse, is that means I must rewrite views and template codes of my app to fit this upgrade? And should I to do so if I wanna use others' app? -- You received this message be

Re: Problems creating django project in Windows 7

2012-03-08 Thread Mark Jones
I've created a manage.cmd and put it on my path so I can type less while on windows the command is just @echo off python manage.py %* this makes it more like linux The "@echo off" part is important because mange dumpdata >filename doesn't want to see the command line echoed into the json file.

Re: Problems creating django project in Windows 7

2012-03-08 Thread Mark Jones
I use WingIDE and one license covers all 3 platforms for a developer. And the guys that make it are incredibly nice and helpful with features and how to use. I Highly recommend it. (30 day free trial too) -- You received this message because you are subscribed to the Google Groups "Django user

Looking for Django IDE

2012-04-01 Thread Mark Phillips
lugin to work. I am looking at ninja, but there does not appear to be a django plugin. Thanks, Mark -- 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

Need Help wtih Importing Data into a Model

2012-04-04 Thread Mark Phillips
-linux-gnu (x86_64) using readline 6.2 django 1.3.1 final Thanks, Mark -- 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 dj

How to restrict values in admin input form?

2012-04-06 Thread Mark Phillips
-you to all the writers on the project! For what it is worth, I am using django 1.3 on Debian testing (that is the latest version in the Debian repositories). Thanks, Mark -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to

How can I create a sequence number for a data set in the model?

2012-04-06 Thread Mark Phillips
| yyy 6 | 4 | 3 | zzz Basically, I have sets of data determined by a foreign key, and I want to know the order in which the rows arrive within a data set. Thanks for your suggestions! Mark -- You received this message because you are

Re: How can I create a sequence number for a data set in the model?

2012-04-07 Thread Mark Phillips
On Fri, Apr 6, 2012 at 10:58 PM, Dennis Lee Bieber wrote: > On Fri, 6 Apr 2012 22:34:35 -0700, Mark Phillips > declaimed the following in > gmane.comp.python.django.user: > > > > > Basically, I have sets of data determined by a foreign key, and I want to > > kn

Re: Quick tutorial question

2012-04-11 Thread Mark Phillips
ject.com/en/dev/ref/models/instances/#django.db.models.Model.__unicode__> methods to your models, not only for your own sanity when dealing with the interactive prompt, but also because objects' representations are used throughout Django's automatically-generated admin. Mark On Tue, A

Re: [JOB] Django Programmers

2012-04-12 Thread Mark Phillips
That's not very nice to prosecute potential employees.at least wait until you hire them and they do something wrong.;) Mark On Thu, Apr 12, 2012 at 5:52 PM, Martino wrote: > Good day, > > I am Martin Vincent, CTO for ISolutionspro, an internet business > con

Multiple databases or Redis/Stats/Graphite/Loggly

2012-05-02 Thread Jean-Mark
Hi all, I'm working on an app that will store gps coordinates from devices. That information will come in every 5 or so minutes of each hour. So it's alot of data. Any recommendations on how I should store this? Do I use multiple databases and use say MongoDB or Couch for the storage of the poi

Re: SATCHMO - Brand vs Brand category - difference

2012-05-05 Thread Mark Phillips
Not sure about satchmo, but a brand would be intel, and a brand category would be microprocessor. Mark On May 5, 2012 10:24 AM, "kooliah" wrote: > I'm not english mother language, so I can't understand the difference from > brand and brand category, i googled very muc

Need Help Converting SQL statement into Django Query Syntax

2012-05-06 Thread Mark Phillips
- https://docs.djangoproject.com/en/1.3/topics/db/queries/, but I am not seeing how to make the translation. I am using django 1.3. Thanks! Mark -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Need Help Converting SQL statement into Django Query Syntax

2012-05-06 Thread Mark Phillips
On Sun, May 6, 2012 at 9:24 AM, Dennis Lee Bieber wrote: > On Sun, 6 May 2012 08:16:02 -0700, Mark Phillips > declaimed the following in > gmane.comp.python.django.user: > > > I have three tables - > > Person: id, first_name, last_name, deleted, last_update >

Best Practices for Changing Data Model

2012-05-10 Thread Mark Phillips
better ways to handle these scenarios? Thanks, Mark -- 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-user

Need Help with ForeignKeys

2012-05-23 Thread Mark Phillips
related field 'Team.team_id'. Add a related_name argument to the definition for 'visitingteam_id'. I read the related names documentation referenced in the related_name description, and that did not help me understand what I need to do to fix this problem. I think I und

Re: Need Help with ForeignKeys

2012-05-23 Thread Mark Phillips
Thanks, that worked. Now, can you please explain why it worked? What does the related_name do and why do I need it? Thanks! Mark On Wed, May 23, 2012 at 7:34 AM, Simone Federici wrote: > class Game(models.Model): > game_id = models.IntegerField(primary_key=True) >

Re: Need Help with ForeignKeys

2012-05-23 Thread Mark Phillips
Thanks! I think I understand it now! Mark On Wed, May 23, 2012 at 8:00 AM, Simone Federici wrote: > On Wed, May 23, 2012 at 4:40 PM, Mark Phillips > wrote: > >> Now, can you please explain why it worked? What does the related_name do >> and why do I need it? > > W

Re: Template Loader Error: (It's been really frustrating till now..!)

2012-07-18 Thread Mark Anderko
I am having similar problems. did you manage to get this fixed? On Wednesday, January 25, 2012 6:51:34 AM UTC-8, leaks wrote: > > Hey all... i get this error while i have a template directory and my > about.html file It doesn't display the home.html either... > > Environment: > > > Request

Dynamically adjusting STATIC_URL depending on http or https requests?

2012-08-06 Thread Mark Gemmill
I've been tackling the problem of serving both the frontend (http) and the admin (https) site of a Django application from a single instance of the application. I ran a successful test on webfaction serving the application with nginx+gunicorn and having nginx take care of redirecing /admin urls

Re: Dynamically adjusting STATIC_URL depending on http or https requests?

2012-08-06 Thread Mark Gemmill
> > What about 2 settings files, for the different instances? One for HTTP and > one for HTTPS? > > You can partially override settings by doing something like this: > > from foo.settings.prod import * > # Add local overrides here > > Regards, > Nickolas > > On Monday,

Re: Dynamically adjusting STATIC_URL depending on http or https requests?

2012-08-08 Thread Mark Gemmill
ver (first time I've tried that) had me thinking I required the full url for it to work properly. This is so much easier. Thanks for that. Mark On Wednesday, 8 August 2012 07:09:36 UTC-7, Nikolas Stevenson-Molnar wrote: > > You could use a schemeless URL for S

Re: Issue Deploying Django

2012-08-11 Thread Mark Gemmill
Like William, I'd have to say I've had pretty good luck with Webfaction. You can do just about anything you want and the support is very good. They have standard setup scripts for various types of apps, including Django, but if you want to do something custom you have a lot of freedom. For inst

Re: Storage Backend for MediaTemple's ProCDN?

2011-10-23 Thread Mark Hughes
with the URL for the CDN. https://docs.djangoproject.com/en/dev/howto/static-files/ Cheers, Mark. -- 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 fro

Re: Set of choices of which several can be chosen without using a ManyToManyField

2011-11-02 Thread Mark Furbee
As alluded to previously, the most "straightforward way to use a set of choices of which several can be chosen" IS to use a ManyToManyField. The syntax is slightly different, but ManyToManyFields are really easy to use with Django. Do not reinvent the wheel in this case. Thanks, Mark F

Re: Relation not found error while dealing with foreign keys and forms

2011-11-04 Thread Mark Furbee
Good Morning Tabitha. Actually, do you have a model for StaffForm? That is the object being instantiated and then causing the error. If there is no nics group reference field in the StaffForm object, it may raise this error. Also, do you have this running in a view/template? Do you have a real pag

Professional forum software that integrates with Django

2011-12-22 Thread Mark Stahler
Does any one know of a professional forum package, commercial or open source like vBulletin, phpBB or similar that easily integrates with Django's authentication system? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Having Headache With LoginForm

2012-01-17 Thread Mark Furbee
It means, don't use the "decorator" @login_required above your login view. Your login view cannot require a login, because you'd never get to log in. Chicken and egg. On Tue, Jan 17, 2012 at 2:34 PM, coded kid wrote: > > > Thorsten Sanders wrote: > > With using > > > > @login_required decorator

url name to generic class-based views with parameters?

2012-01-18 Thread Mark Stahler
Can someone explain how to link using url names to class-based views that include parameters? Example: url(r'^video/(?P\d+)/$', VideoView.as_view()), works but all my links have to manually have "/video/{{ video.id }}/" or similar. I cannot get {% url videos %}{{ video.id }} to work with the fol

<    1   2   3   4   5   6   >