Re: Having Headache With LoginForm

2012-01-18 Thread Mark Furbee
s now, when they go to the login page, while they are already logged in, it will allow them to log in again as a different user. Perhaps that is intended, I just thought I'd point it out. Mark On Tue, Jan 17, 2012 at 10:57 PM, coded kid wrote: > Yeah, I've done that, but its not

Re: url name to generic class-based views with parameters?

2012-01-18 Thread Mark Stahler
Aha, thanks guys. Very simple now that it was pointed out. -- 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: Having Headache With LoginForm

2012-01-18 Thread Mark Furbee
gged out successfully.'}, context_instance=RequestContext(request)) template login.htm: . . . {% csrf_token %} Login {% if error %} {% FatalImage %} {{ error }} {% endif %} {% if warning %} {% WarnImage %} {{ warning }} {% endif %} {% if notice %} {% NoticeImage %} {{

Re: Having Headache With LoginForm

2012-01-19 Thread Mark Furbee
slashes, change the ? with *, like `url(r'^login/*', 'views.Login')`. Again, that's not tested, but it should work, I think. Happy Coding! Mark On Wed, Jan 18, 2012 at 6:09 PM, coded kid wrote: > Thanks bro. Don't you think I should import Login in urls.py? What >

problems running subprocess inside django view

2012-01-27 Thread Mark Lancaster
I'm having problems running subprocess inside a django view using: result = subprocess.Popen([ , ], stdout=subprocess.PIPE).communicate()[0] exactly the same method works perfectly inside a regular python script. Should I be using a different method to initiate a script? Thanks -- You receive

contrib group memberships

2012-11-12 Thread Mark Vijftigschild
hat a user has access to, but also with group memberships. I would greatly appreciate any help any of you can offer. Regards, Mark P.S. If turns out to be a double post, I'm sorry -- You received this message because you are subscribed to the Google Groups "Django users" group

Filtering on group membership (contrib.auth)

2012-11-12 Thread Mark Vijftigschild
er.username, 'table':jobtable} ) The group and user stuff is contrib.auth without modifications. I think i'm missing something very simple so if anyone can help me here I would greatly appreciate it. Regards, Mark -- You received this message because you are subscribed to th

how do I resolve this error: " (552, '5.6.0 Headers too large (32768 max)') "

2012-12-04 Thread Mark Webster
While testing out a Django application which uses django's core mail 'send_mail' the following occurs while sending a message to a large number of email recipients. (552, '5.6.0 Headers too large (32768 max)') is there a configuration setting on the django send_mail side which will resolve

Using django-profiles app twice in one project.

2012-12-27 Thread Mark Shervey
r project settings."*. I know it's because I need this variable to point at the profile app, but is there a way that I can either 1) Point it two places, or 2) create a new variable for it to resolve to? I'm lost. Best, Mark -- You received this message because you are subscrib

Task/project management open source django application?

2012-12-28 Thread Mark London
Hi - I'm looking for an open source project/task management system, based on django. Something like this one: http://birdhouse.org/software/2008/09/django-todo/ Are there any others out there like this? Thanks. - Mark -- You received this message because you are subscribed to the G

Re: Happy new year

2013-01-01 Thread Mark Phillips
Happy New Year from Arizona! Mark On Jan 1, 2013 9:25 AM, "Amirouche" wrote: > Bonne année, paix et prosperités! > > Amirouche from Paris, FRANCE. > > On Monday, December 31, 2012 10:42:13 PM UTC+1, cingusoft wrote: >> >> Happy new year from spain to all dj

Re: Any good books for learning django?

2013-02-08 Thread Mark Phillips
+1 to Tom Mark On Fri, Feb 8, 2013 at 5:58 AM, Tom Evans wrote: > On Fri, Feb 8, 2013 at 10:13 AM, vijay shanker wrote: > > do u have the pdf ? > > will u share it at some place (or please mail it to me > deont...@gmail.com) > > Please don't use this lis

Re: can someone rewrite this line please

2013-02-20 Thread Mark Furbee
k\">'; FYI: if you use an IDE like Eclipse, it will show you what is and isn't escaped to some degree, using colored text to denote quoted strings versus compiled commands. Cheers, Mark On Wed, Feb 20, 2013 at 6:25 AM, MikeKJ wrote: > large = ' src='+json.la

Re: can someone rewrite this line please

2013-02-21 Thread Mark Furbee
No worries, Mike. Any time! On Thu, Feb 21, 2013 at 3:17 AM, MikeKJ wrote: > Thank you Mark spot on! > > Really appreciate it > > > > > > On Wednesday, February 20, 2013 3:58:28 PM UTC, Mark wrote: > >> Not sure if you need the json.large to be compiled

Re: Saving browser output as pdf

2013-02-24 Thread Mark Furbee
Mike DeWitt's answer is most appropriate. In you view define an argument 'pdf=False' and when returning the response from uou view, if pdf is False, return regular HttpResponse. If pdf is True, follw @Mike's reply to set response Content type to PDF. It is really easy to return what would be an htm

Re: Saving browser output as pdf

2013-02-24 Thread Mark Furbee
hat what you are proposing is to create an HTML version of the report and a separate PDF version using ReportLab. Otherwise, if you want to make what would be an HTML report download as a PDF document, use @Mike's solution. Good Luck, Mark On Sun, Feb 24, 2013 at 8:04 AM, Satinderpal Singh <

Re: ANNOUNCE: Django 1.5 released

2013-02-26 Thread Mark Furbee
Woo-hoo! Awesome news. We really appreciate all the hard work you guys have been doing getting this version out. Thanks a million! Mark On Tue, Feb 26, 2013 at 11:44 AM, James Bennett wrote: > Yup, it's finally here! > > * Announcement blog post here: > https://www.djangop

I need a form that allows users to select from a list of choices, or add a new choice.

2013-02-27 Thread Mark London
-the-addition- There should be a better way than this. 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...@google

Re: I need a form that allows users to select from a list of choices, or add a new choice.

2013-02-28 Thread Mark London
Great. Thanks very much! On Wednesday, February 27, 2013 6:13:05 PM UTC-5, Rainy wrote: > > > > > On Wednesday, February 27, 2013 11:28:50 AM UTC-5, Mark London wrote: >> >> I need a widget or a method that allows users to select items from a list >> of choice

Re: 'url' template tag throws and error after upgrading to 1.4

2013-04-04 Thread Mark Furbee
It would appear to me that your missing the path to django in your environment. When you upgraded did you also upgrade to another version of Python, perhaps? Is the dist-packages/site-packages django folder in the same place it was? On Thu, Apr 4, 2013 at 3:58 PM, Bastian wrote: > I have tried

Re: 'url' template tag throws and error after upgrading to 1.4

2013-04-04 Thread Mark Furbee
Can you run manage.py shell and connect to 'views?' On Thu, Apr 4, 2013 at 4:13 PM, Mark Furbee wrote: > It would appear to me that your missing the path to django in your > environment. When you upgraded did you also upgrade to another version of > Python, perhaps? Is the

Adding manytomany field, like "days of the week".

2013-04-09 Thread Mark London
populated with anything. Shouldn't it be? CREATE TABLE `myapp_days` ( `id` int(11) NOT NULL AUTO_INCREMENT, `days` varchar(1) NOT NULL, PRIMARY KEY (`id`)) ENGINE=MyISAM DEFAULT CHARSET=latin1; LOCK TABLES `todo_days` WRITE; UNLOCK TABLES; The selected days are getting saved into

Re: Adding manytomany field, like "days of the week".

2013-04-09 Thread Mark London
Thanks for the response. I had read about fixtures, but then people were saying that fixtures wasn't the best way to initialize the model, but they didn't give the alternative! Next time, I won't listen to opinions, but will use code that actually works. - Mark -- Yo

Re: Accessing Django project models from CGI

2013-04-10 Thread Mark Jones
Can't imagine why you would want to do this via CGI, it can't perform very well. There is a TON of stuff that gets setup during initialization for wsgi/runserver, etc.. Syntax wise your import is way off since your models do not live in the Django folder, you can't import them like this.

Custom Commands?

2013-04-10 Thread Mark Lybrand
ions'), ) help = 'Help text goes here' def handle(self, **options): print "This is a command" When I run python manage.py x I get: Unknown command: 'x' Type 'manage.py help' for usage. Where should begin looking to troubleshoot

Re: Custom Commands?

2013-04-11 Thread Mark Lybrand
'management' folder should be located in your application folder. And > don't forget add application in INSTALLED_APPS in your settings.py > (INSTALLED_APPS = ('myapp', )) > > On Thu, Apr 11, 2013 at 4:52 AM, Mark Lybrand wrote: > > I am at a loss how

Re: Custom Commands?

2013-04-11 Thread Mark Lybrand
To answer my own question: Yes, that works. Follow up question: does each app need its own set of commands? It would seem funny to put all the commands for a project into one of the apps. Or is that the idea? That commands are meant to be app-specific? On Thu, Apr 11, 2013 at 4:41 AM, Mark

Re: Custom Commands?

2013-04-11 Thread Mark Lybrand
PP bring with it any security or performance issues I should be aware of? Thanks for all the help. On Thu, Apr 11, 2013 at 5:14 AM, Tom Evans wrote: > On Thu, Apr 11, 2013 at 12:41 PM, Mark Lybrand wrote: > > So, you have a management/commands structure in each app of your project &g

Re: Custom Commands?

2013-04-11 Thread Mark Lybrand
Thanks. I appreciate the glimpse into how another developer organizes their application. This will help me decide what I think might work for my needs. On Thu, Apr 11, 2013 at 5:44 AM, Tom Evans wrote: > On Thu, Apr 11, 2013 at 1:22 PM, Mark Lybrand wrote: > > Sorry about that, he

Status of Django with Python 3.x

2013-04-11 Thread Mark Lybrand
looking at a matter of months or a year or if it something that may be 3 or 5 or more years out. Thanks in advance. -- Mark :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emai

Static Files on IIS install

2013-04-11 Thread Mark Lybrand
files from the core django package? What information do you need from me to be able to answer this question? Thanks in advance. -- Mark :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiv

Re: Static Files on IIS install

2013-04-11 Thread Mark Lybrand
b server: IIS 7 with FastCGI Python: 2.7.4 Django: 1.4.5 Should I post my settings.py file as well? On Thu, Apr 11, 2013 at 10:21 PM, Mike Dewhirst wrote: > On 12/04/2013 12:56pm, Mark Lybrand wrote: > >> I have managed to get a Django app installed on IIS7. It is not finding >>

Re: Status of Django with Python 3.x

2013-04-12 Thread Mark Sundstrom
hould have no worries about using Django with 3.3 --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

Re: One Way to Install Django on IIS

2013-04-12 Thread Mark Lybrand
27;m going to need when I'm done with development. > > Thanks! > > On Friday, April 12, 2013 6:02:49 AM UTC-7, Mark Lybrand wrote: > >> My buddy and I were working last night on getting Django running on IIS7. >> We are not quite done as we are still working out issue

Re: need help with csv export

2013-04-13 Thread Mark Lybrand
line6, > line7, line8, line9, line10, line11, > line12, line13, line14, line15, line16, > line17, line18]) > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from

VirtualEnv After the Fact

2013-04-13 Thread Mark Lybrand
that I can start just installing within my VirtualEnvs? BTW, I am on Windows 7 (and sometime Ubuntu 12) if either of those matter. I apologize if this question is stupid. -- Mark :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To u

Django Package Manager and Alternate Configs

2013-04-13 Thread Mark Lybrand
switch out the templating (like webforms vs. razor or rdoc vs haml, etc)? Or basically, what are coming features that folks switch out when they get past the initial "learn to make a Django app" stage? TIA -- Mark :) -- You received this message because you are subscribed to the Goo

debugging with pycharm

2013-04-21 Thread Mark Lybrand
I can't get PyCharm to break at breakpoints when debugging a django app. what is the magic incantation i neec to invoke to make this happen regardless of where i am in code (views, urls, models, templates, etc) -- Mark :) -- You received this message because you are subscribed to the G

Re: debugging with pycharm

2013-04-22 Thread Mark Lybrand
server > isn't still running. Also, make sure your break point is on a line a line > which does something (e.g., *not* on a class/function definition, empty > line, etc.) > > _Nik > > > On 4/21/2013 10:14 PM, Mark Lybrand wrote: > > I can't get PyCharm to break

Re: debugging with pycharm

2013-04-23 Thread Mark Lybrand
3 3:03:11 PM UTC-3, Mark Lybrand wrote: > >> >> It would appear that this was broken in 2.7.1. When I upgraded to 2.7.2 >> my breakpoints once again work as expected. >> > > I think in 2.7.1 the BP did not work if you set them after running server, > on 2.7.2 is

Re: question about django tutorial

2013-04-30 Thread Mark Lybrand
Try: python manage.py syncdb If you have set up the rest of your project with the admin stuff, then this should create the tables for you. Then run python manage.py runserver again. Mark :) On Tue, Apr 30, 2013 at 1:45 PM, Christopher Spears wrote: > Hi! > > I am a Django newbie,

Creating database views, functions, stored procedures etc

2013-06-20 Thread Mark Robson
d the tables they depend upon to be all created beforehand. (NB: I'm using Postgresql, if it makes any difference) Does anyone have a suggestion for how to handle this? Thanks Mark -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Restrict access to one device per user at any given time

2013-06-21 Thread Mark Robson
27;ve logged on elsewhere). I doesn't sound very difficult to me. Mark On Friday, June 21, 2013 10:40:39 AM UTC+1, mjh wrote: > > Hi, > > I am trying to figure out the best way of restricting access to a given > django project so that a single user can login as normal but

Re: Pip type error.

2013-07-10 Thread Mark Liu
Googled this problem and came here. I was also using powershell but everything worked after I converted the requirments file to utf-8 On Wednesday, May 1, 2013 8:43:13 AM UTC-4, il...@app-loader.com wrote: > > Brilliant ! > I was using powershell. > When I switched back to good old cmd.exe pip fr

Re: Big Picture?

2013-07-14 Thread Mark Phillips
A suggestionadd a note to explain the colors as you did in your previous email. Mark On Jul 14, 2013 10:13 AM, "Amirouche Boubekki" wrote: > The link to new version is missing: > https://github.com/amirouche/experiments/tree/master/django-big-picture > > Thanks again

Re: I really about to give up Django

2013-08-22 Thread Mark Furbee
Try dropping the .value from referencia. Like {{ form.instance.idproduto.idmercadoria.referencia }}. Does this work? On Thu, Aug 22, 2013 at 9:35 AM, Fellipe Henrique wrote: > I tried again.. and work if I have just 1 FK, if I have more then one, > doesn't work, like this: > > I have this models

Re: I really about to give up Django

2013-08-22 Thread Mark Furbee
Are your "nome" and "idade" fields displaying? If so, {{ form.instance.brinq.descricao }} should display the descricao field of the brinq object associated with that Filhos instance bound to the form in the formset. On Thu, Aug 22, 2013 at 9:24 AM, Fellipe Henrique wrote: > Ok, I read that, but

Re: I really about to give up Django

2013-08-23 Thread Mark Furbee
displayed.. > > Em quinta-feira, 22 de agosto de 2013 13h38min04s UTC-3, Mark escreveu: >> >> Try dropping the .value from referencia. Like {{ form.instance.idproduto. >> **idmercadoria.referencia }}. Does this work? >> >> >> On Thu, Aug 22, 2013 at 9:35 AM, Felli

Re: I really about to give up Django

2013-08-23 Thread Mark Furbee
edido" model, not "ItensPedido". > > My "ItensPedido" has "idproduto" not my "Pedido". and all idproduto has > idmercadoria, it a required field, never, never go null`s this field. > > Cheers, > > Em sexta-feira, 23 de agosto de 2013

New to Django and developing website based on a Framework. What is the best order to develop website?

2013-08-31 Thread Mark Strickland
I am starting to develop a website using django and I am wondering if I should add all the extra modules (authorization, mutliLanguages, comments), at the beginning, or should I develop the basic pages (apps) and then go back and add in the requirements for the modules I want to add. I am tryi

What's the new "field" parameter in the ManyToOneRel __init__ function?

2013-09-06 Thread Mark Young
(I can't really decide if this should go here or in django-dev, since I'm asking how to use a private class. If it'd fit better elsewhere, just let me know please.) Hi, I'm working on updating an app (not written by me (django-blog-zannia, for the curious)) to python 3.3 and django 1.6 . I've g

Re: What's the new "field" parameter in the ManyToOneRel __init__ function?

2013-09-06 Thread Mark Young
For a little bit of context, here's an example of code that perviously worked but now doesn't: class CategoryAdminForm(forms.ModelForm): """Form for Category's Admin""" parent = TreeNodeChoiceField( label=_('Parent category'), level_indicator='|--', required=False, empty_label

Re: What's the new "field" parameter in the ManyToOneRel __init__ function?

2013-09-07 Thread Mark Young
Er, it's not part of the API. You know what I mean. -- 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. To post to this gr

Re: What's the new "field" parameter in the ManyToOneRel __init__ function?

2013-09-07 Thread Mark Young
Thank you! That tentatively fixes the issue. Now I just need to talk to the original author and make the code not use this API at all... -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fr

Dynamic image content

2013-09-10 Thread Mark O
Hi folks, Consider the snippet in views.py url = http://127.0.0.1:8806/test request = urllib2.Request ( url ) f = urllib2.urlopen ( request ) result = f.info().getheader ( 'Content-Type' ) if result == "image/jpeg" : print "image/jpeg" s = f.read() t = loader.

Re: Need help in my Django program

2013-09-22 Thread Mark Phillips
your code, (give just that snippet), and what have you tried to solve the problem? Read this: http://www.catb.org/esr/faqs/smart-questions.html, and try again. If you follow this guide, you will get lots of excellent support from open source communities. Mark On Sun, Sep 22, 2013 at 5:37 PM

New to Django cannot figure URLpatterns

2013-10-14 Thread Mark Strickland
I am new to using Django and I can get one urls to work, but I cannot get another. I am running Django 1.5 This url works. url(r'^$', views.index, name='index'), But if I try to follow this one. url(r'^(?P\D+)/$', views.detail, name='detail'), I get the following error.when I try http://1

Django Blog Engines that Run on GAE

2011-05-07 Thread Mark Curphey
. 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 from this group, send email to django-users+unsubscr...@googlegroups.com. For more opti

Re: python + BDD (Behaviour)

2011-06-11 Thread Mark Curphey
Similar question: I was looking to see if there is a Python equivalents to Cucumber and Capybara ? On Jun 11, 2011, at 11:27 AM, Guilherme Silveira Elias wrote: Hi Folks! Have you already used any BDD module for testing purpose like this http://packages.python.org/Behaviour Currently I use RSp

Re: python + BDD (Behaviour)

2011-06-11 Thread Mark Curphey
Thanks. Do most Python folks generally use Selenium ? On Jun 11, 2011, at 12:59 PM, Xavier Ordoquy wrote: > > Le 11 juin 2011 à 21:27, Mark Curphey a écrit : > >> Similar question: I was looking to see if there is a Python equivalents to >> Cucumber and Capybara ? >&

Re: python + BDD (Behaviour)

2011-06-13 Thread Mark Curphey
he > test format is the same) so you should be able to jump right in. The > terrain features they offer are really useful as well. > > On Sat, Jun 11, 2011 at 8:58 PM, Mark Curphey wrote: >> Thanks. Do most Python folks generally use Selenium ? >> >> On Jun 11, 201

Django password_change

2011-06-23 Thread Mark L.
Hey guys, I'm a newb to Django, but have some experience with Rails. Its fun to see the similarities and differences in both! After looking through https://docs.djangoproject.com/en/dev/topics/auth/#module-django.contrib.auth.views Under the section 'Other built-in views' I think password change

Re: Django password_change

2011-06-24 Thread Mark L.
://yuri-piratello.blogspot.com<http://yuripiratello.orgfree.com> > msn: yuri_zp...@hotmail.com > Skype: yuri_zpira > Gmail: yuri.pirate...@gmail.com > Twitter:http://twitter.com/yuri_zpira > GNU/Linux user number: 530410 > > On Thu, Jun 23, 2011 at 3:53 PM, Mark L.

Can't get official "djangoproject.com" site running

2011-06-25 Thread mark elion
Hello guys. I am quite a beginner in using django and python. I have read through tutorial on the official website, and also separate topics on models, views, templates, urls, forms. So I have basic idea on how django works. I have choosen the official djangoproject website from here https://github

Re: use table not in the model

2010-12-16 Thread Mark (Nosrednakram)
at I only need read only queries and made a model for the view then set all columns to have editable = False to keep admin etc from trying to update. Mark -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Creating initial Security/Auth objects with syncdb

2010-12-21 Thread Mark (Nosrednakram)
Hello, I would like to install an auth_group with my application and am considering using the following code in app/management/__init__.py. Is this an acceptable solution? Is there a better way to do this? Thanks, Mark from django.db.models import signals try: from

new user having trouble connecting django to postgres with psycopg2

2011-01-06 Thread Mark Brazil
e my settings.py set to "Australia/Sydney". I logged into postgres and set the TZ variable to AEST and started the database. But still get this. I'm guessing it is something simple, but cannot find the answer. Any ideas would be great, Thanks, Mark. -- You received this messag

Re: Django admin - action on delete

2011-01-07 Thread Mark (Nosrednakram)
There is a warning in on overriding delete, maybe not a concern for you but worth knowing about.: http://docs.djangoproject.com/en/dev/topics/db/models/ Note that the delete() method for an object is not necessarily called when deleting objects in bulk using a QuerySet. To ensure customized delet

Re: new user having trouble connecting django to postgres with psycopg2

2011-01-08 Thread Mark Brazil
zed time zone name: "Australia/Sydney" On 07/01/11 17:43, Subhranath Chunder wrote: I guess you'll have to set it to 'Australia/ACT Australia/Canberra Australia/NSW Australia/Sydney' in your settings.py instead. Thanks, Subhranath Chunder. On Fri, Jan 7, 2011 at 6:22

Re: templating best practices in django

2011-01-09 Thread Mark (Nosrednakram)
rate a page you start blocking based on performance etc this is an issues with some sites. 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-us...@googlegroups.com. To unsubscribe from thi

Prepopulation: Calling a field from another class

2011-01-22 Thread Mark Penix
The idea I'm trying to wrap my head around is this... the exercise db has just id, name each "workout" can have an exercise with different sets, reps, etc... the workout_name field I want prepopulated so it gets the exercise name that I choose from the selector then the sets, reps, then time so if:

Re: Django Improper Configuration

2011-01-23 Thread Mark Penix
your whole engine line should read 'ENGINE': 'django.db.backends.sqlite3' -- 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-u

Re: Django Improper Configuration

2011-01-24 Thread Mark Penix
l show what Python is seeing DATABASES as being set to. > > > > >>>> if it doesn't show, then wrong file. If shows, but is different to > what > > >>>> they believe they are setting it to, they could have multiple > DATABASES > > >&g

Re: How to define each model in its own file

2011-02-06 Thread Mark (Nosrednakram)
tions. Sorry not in a position to test but believe this should work. Mark On Feb 6, 5:39 am, "h@ck5t0ck" wrote: > Hi Guys, > Am very new to django and am working on a relatively large web > application which includes over 15 models. > Now I want to define each model in its o

Re: How to check if user is already in user database?

2015-01-16 Thread Mark Furbee
Yes, that link will cover the basics... Here's a couple ways to find out if a query returns any records: User.objects.filter(username=username).exists() # .exists() returns boolean if records are found. User.objects.filter(username=username).count() != 0 # .count() returns number of rec

Re: How to check if user is already in user database?

2015-01-16 Thread Mark Furbee
Also, you can do a try/catch, but I don't really like this method, personally: try: User.objects.get(username=username) except User.DoesNotExist: # user didn't exist in database. On Fri, Jan 16, 2015 at 9:16 AM, Mark Furbee wrote: > Yes, that link will cov

django.contrib.auth doesn't support template context processors?

2015-01-20 Thread Mark Rogaski
;s not a big problem for me, but it seems that the contrib packages should support this ... it's really a lovely feature. Has anyone else run into this or know if this is something that is slated to be added? Thanks, Mark -- You received this message because you are subscribed to the Goo

Re: django.contrib.auth doesn't support template context processors?

2015-01-20 Thread Mark Rogaski
Yes, I've appended it to the defaults. TEMPLATE_CONTEXT_PROCESSORS += ( ' django.core.context_processors.request', ) On Tuesday, January 20, 2015 at 7:43:54 AM UTC-5, Edgar Gabaldi wrote: > > did you register the context processor in settings? > > On Tue, Ja

Re: django.contrib.auth doesn't support template context processors?

2015-01-20 Thread Mark Rogaski
And looking at the request using django-debug-toolbar, I confirmed that none of the context processors were applied to the templates. On Tuesday, January 20, 2015 at 8:26:22 AM UTC-5, Mark Rogaski wrote: > > Yes, I've appended it to the defaults. > > TEMPLATE_C

Re: django.contrib.auth doesn't support template context processors?

2015-01-21 Thread Mark Rogaski
M UTC-5, Mark Rogaski wrote: > > Hello, > > I'm coming back to Django after working with 1.4/1.5. Within a custom > template for auth.views.password_reset, I'd like to access the request > data using django.core.context_processors.request. But it doesn't look

static files with query strings

2015-02-06 Thread Mark Mikofski
Do I need to make a custom storage or custom template to handle query strings in static file URLs or endpoints? Using the new static template in Django>=1.4 works fine for simple endpoints and URLs For example, the following works fine: {% load staticfiles %} However if the ULR or

Problem with aggregate(Sum())

2015-02-21 Thread Mark Caglienzi
n the test, that the filtered queryset is composed by three Row objects, as expected, but the next assert fails, with 40 != 30. I added a test that instead of aggregate(Sum('amount')) does sum([x.amount for x in rows]) which passes. Is this a bug in Sum() or am I missing something? Kind r

Re: Installation OPEN VOLUNTEERS

2015-05-23 Thread Mark Phillips
not accepting any more updates, so you may be on your own for supporting the code base. Good Luck! Mark P.S. Not sure if there is a French language email list for django, but you may be able to find one on the django web site. 2015-05-23 6:39 GMT-07:00 Thomas Tetelin : > Bonjour a t

potential bug

2015-06-14 Thread Mark Nesterovych
Hello. I've just finished small django site, and keep going on creating tests. I've found and issue with Model.objects.values_list method. Looks like it disregard test database and looks into production one. Some details. I have a form with a filed customer = forms.ChoiseField(choises=Customer.o

Re: potential bug

2015-06-15 Thread Mark Nesterovych
Forgot about ModelChoise. Thank you. On Sunday, 14 June 2015 22:37:26 UTC+3, Tom Evans wrote: > > On Sun, Jun 14, 2015 at 3:24 PM, Mark Nesterovych > > wrote: > > Hello. > > I've just finished small django site, and keep going on creating tests.

Re: hosting django app

2014-08-22 Thread Mark Phillips
Check out linode.com. Great service and very easy to use and manage. Mark On Fri, Aug 22, 2014 at 6:56 AM, ngangsia akumbo wrote: > thanks bro > > > On Friday, August 22, 2014 1:36:32 PM UTC+1, Jonathan Querubina wrote: > >> dreamhost.com >> >> Sent from my iP

Django job: recruiter emailed me

2014-09-09 Thread Mark McWiggins
*http://www.CyberCoders.com/qc.aspx?posId=GB1-55353&ad=CSGia.Boulos * Good luck! I have had several other recruiters respond to resumes of mine with Django prominently featured on them. If you're looking please let me know and

Re: unbalanced parenthesis

2014-09-17 Thread Mark Phillips
ectful of everyone's donated time and make the effort to (1) solve your own problem first and (2) then ask very specific questions. Mark On Wed, Sep 17, 2014 at 8:14 AM, ngangsia akumbo wrote: > i dont understand what is going on i need some help > error at /admin/ > &g

Re: unbalanced parenthesis

2014-09-22 Thread Mark Phillips
Russ, +100 Thanks! Mark aka Matt ;) On Mon, Sep 22, 2014 at 5:02 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > HI Ngangsia, > > Mark directed you at Google because your usage of this list is extremely > consistent with someone who *hasn't* tried to

Re: What is *the* django 1.7 IDE which is opensource & multiplattform

2014-09-24 Thread Mark Phillips
Gedit works well with syntax highlighting. I like the console widow in the bottom pain to restart the server when needed, see error messages, etc. Don't have to go to another terminal window. http://www.micahcarrick.com/gedit-as-a-django-ide-for-linux.html Mark On Wed, Sep 24, 2014 at 10:

Re: Django hosting

2014-09-24 Thread Mark Phillips
ng provider tomorrowstart free, learn what you need and how much you need to scale up, and then move to paid hosting. AWS EC2 also has European data centers. Anyway, just my 2 cents on hosting. Lots of options. Mark On Wed, Sep 24, 2014 at 8:40 PM, Sabine Maennel wrote: > I live in Switze

Force date and time formats to ISO

2014-09-29 Thread Mark Caglienzi
thods to do what I need. Is there a better way? Thanks in advance, 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...@go

Re: Force date and time formats to ISO

2014-09-29 Thread Mark Caglienzi
On 29 Sep 13:17, Collin Anderson wrote: > If it helps, the ISO format should always at least be _accepted_ as an > input, even it it's not displayed that way. Yes, I agree, but the main point (for what I need) is also the display of the date and times. This will allow to keep the webapp forms/ta

Re: Which Version of Django

2014-09-30 Thread Mark Caglienzi
On 29 Sep 23:21, Muhammad Ahmed wrote: > Hi, > > I am learning Django by using version 1.4 and I have completed first 4 > introductory > lessons . > > However, I see that newest Django version is 1.7 and I feel that I am using > an outd

Re: I need some help to find a deployment strategy

2014-10-05 Thread Mark Phillips
All roads lead to Rome...just find the one that works best for you. Mark P.S. I would recommend a lot of testing from development through deployment before you actually go live. Make sure the process works end to end...once you go live, there is no turning back! ;) On Sun, Oct 5, 2014 at 10:37

Re: Django hosting

2014-10-15 Thread Mark Phillips
eks for them to enable my free system. You can sign up here - https://www.ohava.com/#signup. Still playing with it to see what it can do. YMMV Mark Phillips On Wed, Sep 24, 2014 at 11:55 PM, Sabine Maennel wrote: > Thank you very much for your advice Marc, it is very valuable to me, > esp

Re: Django hosting

2014-10-15 Thread Mark Phillips
Sabine, Hit send before I was done please see below On Wed, Oct 15, 2014 at 5:21 PM, Mark Phillips wrote: > Sabine, > > Another free hosting option - Ohava.com. 512 MB RAM, 1 VCPU, 20 GB storage > for free. You also get ssh and root access. It won't last forever in your &

Re: rapidsms

2014-10-29 Thread Mark Phillips
1. Perhaps reading the RapidSMS tutorial will help http://rapidsms.readthedocs.org/en/develop/tutorial/index.html. 2. Join the RapidSMS Google group and ask questions there. Mark On Wed, Oct 29, 2014 at 6:27 AM, ngangsia akumbo wrote: > I just got a new project to build an sms app to

Page reload hang using django (python 2.7 in linux)

2014-11-07 Thread Mark Adward
I developed a web app to image process using python django framework. The app woks fine in windows But the problem i am facing on linux operating system. When i start the server using command:- python manage.py runserver , The app works only for the first time then When i click reload on the br

Re: how to learn django and I don't kill in the attempt,

2014-12-15 Thread Mark Phillips
After you go through the django tutorial (really the best place to start), check out Two Scoops of Django (book). I think it is only up to version 1.6, so some things may have changed or look a little different. Mark On Mon, Dec 15, 2014 at 8:44 AM, Shazwi Suwandi wrote: > > My bad! Apo

<    1   2   3   4   5   6   >