Re: Rebuild django app table

2017-03-23 Thread max
OK I found what happen, It need to build step by step ./manage.py migrate contenttypes ./manage.py migrate auth ./manage.py migrate sites ./manage.py migrate my_app ./manage.py migrate max於 2017年3月24日星期五 UTC+8下午12時56分04秒寫道: > > I delete the table Django built(e.g. django_content_type) in

Rebuild django app table

2017-03-23 Thread max
I delete the table Django built(e.g. django_content_type) in my sql server, and restart a new Django project But when I did makemigrations the table didn;t show up, only django_migrations created Somebody know what is going on? -- You received this message because you are subscribed to the Goo

Connect to SQL server but error when migrations

2017-03-20 Thread max
I have the following question post on stackoverflow , but no one can answer me. Hope anyone who has experience on it, I appreciate it! -- You received this message because you are subscribed to the Google Gr

Re: Get current site inside model

2017-01-14 Thread Max
Melvyn Sopacua, i will look it. Thank you all. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group,

Re: Get current site inside model

2017-01-13 Thread Max
For example, also i can change queryset with "fake site" listview -> request -> set queryset site -> template. maybe it will be work, but also i use rss/sitemaps. they will not use abs path, because based on Model. You could generate the urls on the view and pass them already > generated to the

Re: Get current site inside model

2017-01-13 Thread Max
{{ domain }}{{ ob.get_absolute url }} - is not cool , i set site with context proccesor for domain Once again, if you don't have a default site_id or the request object > available inside the method, then what do you expect it to return? I'm > not asking programatically, but logically, if s

Re: Get current site inside model

2017-01-13 Thread Max
Vijay Khemlani, i think my question have not a lot of details. More 1) Django site framework (works with request.get_host() without Site_id). I can get the current site with Site.objects.get_current(*request*), shortcuts (get_current_site) or through model. But i have only one model with site rel

Get current site inside model

2017-01-13 Thread Max
Hi, guys. I want to get absolute url for Model with domain based on request (there is not SITE_ID in the settings.py). How? -- 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

Can i use groups permissions with custom user model?

2016-07-21 Thread Max M
Hello! For example, i extend User: class ExtUserManager(BaseUserManager): def create_user(self, email, password=None): """ Creates and saves a User with the given email, date of birth and password. """ if not email: raise ValueError('Users mu

Can i use group permissions with custom User model?

2016-07-21 Thread Max M
Hello everyone! For example, i have an extended User model: class ExtUserManager(BaseUserManager): def create_user(self, email, password=None): """ Creates and saves a User with the given email, date of birth and password. """ if not email:

Re: "RuntimeError: Error creating new content types."

2015-05-06 Thread Max Usachev
Try to migrate auth application first, and then others: manage.py migrate auth manage.py migrate среда, 29 апреля 2015 г., 14:12:33 UTC+3 пользователь Shubham Goyal написал: > > Facing the same problem. Any leads..?? > > On Saturday, April 18, 2015 at 2:38:56 AM UTC+5:30, Christophe Pettus > wrot

Re: Create User method for Custom Manager Django

2015-02-04 Thread Max Nathaniel Ho
Read it. Understand it now. Thanks! On Tuesday, February 3, 2015 at 10:12:08 PM UTC+8, Daniel Roseman wrote: > > > On Tuesday, 3 February 2015 06:19:47 UTC, Max Nathaniel Ho wrote: >> >> Hi all, >> >> I am following this tutorial ( >> http://musings.tin

Create User method for Custom Manager Django

2015-02-02 Thread Max Nathaniel Ho
Hi all, I am following this tutorial ( http://musings.tinbrain.net/blog/2014/sep/21/registration-django-easy-way/) to create a user registration model in Django. I understand that the class UserManager is overwriting the default User model. However, I do not understand this particular part.

Re: Chrome Desktop Notification for Django

2014-11-13 Thread Max Nathaniel Ho
u could also use websockets or polling (checking every few > minutes/seconds). > > https://developer.mozilla.org/en-US/docs/Web/API/EventSource > http://en.wikipedia.org/wiki/Server-sent_events > > Collin > > On Tuesday, November 11, 2014 8:12:43 PM UTC-5, Max Nathaniel Ho

Chrome Desktop Notification for Django

2014-11-11 Thread Max Nathaniel Ho
I found this excellent example on Chrome Desktop Notification - Chrome desktop notification example? I am able to create the Desktop Notification by clicking a button. However, that is pretty front-end. I woul

Chrome Desktop Notification

2014-11-10 Thread Max Nathaniel Ho
Hi all, I've been tasked to create a simple Chrome Desktop notification module. >From what I have read up so far, I think it means having a desktop notification with a message whenever a certain action is done through the use of Chrome Extension. Has anyone done a similar task, or know of goo

Re: Django REST Framework

2014-10-23 Thread Max Nathaniel Ho
ny model - gender or length or > a boolean or whatever > > Cheers > L. > > > On 23 October 2014 19:20, Max Nathaniel Ho wrote: > > Hi Andreas, > > > > Thank you. Will read up! > > > > On Thu, Oct 23, 2014 at 4:18 PM, Andreas Kuhne < > andre

Re: Django REST Framework

2014-10-23 Thread Max Nathaniel Ho
Hi Andreas, Thank you. Will read up! On Thu, Oct 23, 2014 at 4:18 PM, Andreas Kuhne wrote: > Hi Max, > > I think you should really just google it a bit and read about it. > http://en.wikipedia.org/wiki/Representational_state_transfer is a good > start. > > A simplified v

Re: Django REST Framework

2014-10-23 Thread Max Nathaniel Ho
Hi Russell, Thanks for your reply. As I am fairly new to django and programming in general, do you mind sharing what REST APIs actually do? Thank you! On Thu, Oct 23, 2014 at 11:51 AM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > Hi Max, > > Django ReST Framewo

Django REST Framework

2014-10-22 Thread Max Nathaniel Ho
Hi all, I just came across Django REST Framework. From what I have read up so far, its a Web API framework. What does it do and what is the difference between this and the regular Django Web Framework? Thanks! -- You received this message because you are subscribed to the Google Groups "Dj

Re: Static Media Server (Tango with Django)

2014-10-14 Thread Max Nathaniel Ho
Hi Carl, Colin and Andréas, Thank you for all your replies. You have more than answered my question and clarified my doubts :) On Tuesday, October 14, 2014 1:11:37 AM UTC+8, Carl Meyer wrote: > > Hi Max, > > On 10/13/2014 01:39 AM, Max Nathaniel Ho wrote: > > Hi all, &

Re: Static Media Server (Tango with Django)

2014-10-13 Thread Max Nathaniel Ho
Hi DR, Thanks for your reply. I wanted to clarify - 1. The purpose of Static Media Server and 2. If it is an outdated concept On Monday, October 13, 2014 4:57:32 PM UTC+8, Daniel Roseman wrote: > > On Monday, 13 October 2014 08:39:26 UTC+1, Max Nathaniel Ho wrote: >> >>

Static Media Server (Tango with Django)

2014-10-13 Thread Max Nathaniel Ho
Hi all, I am going through this tutorial on Tango with Django - http://www.tangowithdjango.com/book/chapters/templates_static.html I extracted the specific part of the tutorial as seen in *BOLD*. *4.4. The Static Media Server

Re: Writing your first Django App Part 1

2014-09-02 Thread Max Nathaniel Ho
Thanks! For the codes, do I save them in views.py? On Wednesday, September 3, 2014 7:23:07 AM UTC+8, Jonathan Querubina wrote: > > Just tupe in. Do not worry. > > Is just for learning about the shell and its power > > Sent from my iPhone > > > On Sep 2, 2014,

Writing your first Django App Part 1

2014-09-02 Thread Max Nathaniel Ho
I'm following the instructions in the tutorial but am stuck at this part. We are told to type in "python manage.py shell" and explore the database API. Thereafter there is a chunk of code that is presented. Am I supposed to type it into my Command Prompt box, and when I do, it will be saved a

Re: Combine page content (html) and model instance (json) in ajax response

2014-06-13 Thread Max Demars
your JS can parse the JSON and access the `html` and `param` values. On Thursday, June 12, 2014 2:30:58 PM UTC-4, Max Demars wrote: > > I would like my view to return the page content and some parameters that I > would like to use in the Ext.Ajax.request success function. > >

Re: Django OneToOne field problem

2014-06-12 Thread Max Demars
You will have to do content.link_set to retrieve the Link model related to the Content model instance. See: https://docs.djangoproject.com/en/dev/topics/db/queries/#following-relationships-backward On Thursday, June 12, 2014 2:54:48 PM UTC-4, Satinderpal Singh wrote: > > Suppose there are two t

Combine page content (html) and model instance (json) in ajax response

2014-06-12 Thread Max Demars
I would like my view to return the page content and some parameters that I would like to use in the Ext.Ajax.request success function. views.py def importFile(request): form = ImportVectorForm() html_response = render_to_response("page_content.html", {'form': form, 'folder':

django-tables2 - Mix queryset and non-queryset data in table

2014-04-14 Thread Max Demars
wms.valid = False wms_table = WMSListTable(wms_list) RequestConfig(request).configure(wms_table) return render(request,"basqui/manage_layer_wms_list.html", {'wms_list':wms_table},context_instance=RequestContext(request)) Thanks a l

Re: Django throws ImproperlyConfigured error when loading URLconf on startup

2014-04-03 Thread Max Demars
Greetings, I encounter the same error here. In latest gunicorn release, it's not possible anymore to deploy gunicorn/django the old way doing python manage.py run_gunicorn, so I'm stuck...I'd like to know if someone found what causes this error. -Max Demars On Wednesday, Nove

Re: "Beginning Geo Django: Rich Gis Web Applications With Python" Where can I get the book?

2014-03-19 Thread Max Demars
Hi Alex, I cannot help you with this book in particular, but I could suggest another book that helped me a lot. Python Geospatial Development by Erik Westra -Max Demars On Tuesday, March 18, 2014 11:49:49 AM UTC-4, Alex wrote: > > Thats an interesting dilemma. I just looked around a

Re: Low Level Cache Issue

2013-06-21 Thread Max Vizard
g. On Thursday, June 20, 2013 6:00:04 PM UTC+1, Max Vizard wrote: > > Hi there, > > I'm having some issues with the low level cache functionality in Django > 1.4 and I can't seem to find info relevant to my exact problem. > > I'm running a separate Python script to

Low Level Cache Issue

2013-06-20 Thread Max Vizard
because otherwise the use of such a cache would be quite limited. I haven't checked that Django can write to the cache and read back for itself yet, that is a task for tomorrow. Any thoughts or input is much appreciated. Thanks, Max -- You received this message because you are subscribed

Re: hstore support in postgis backend

2013-04-15 Thread Max Demars
Hi Matt Have you test this hstore branch? Does it combines well the postgis backend with hstore modified postgres backend? Have you found something better so far? Thank you, Max Demars On Wednesday, November 28, 2012 7:08:25 PM UTC-5, Matthew Cooper wrote: > > Hi Reiner > >

Re: Dynamic Models for CSV Importing

2013-04-15 Thread Max Demars
bit of what you have learnt that would be much appreciated. Thank you, Max Demars On Monday, June 20, 2011 7:04:07 PM UTC-4, Andre Terra (airstrike) wrote: > > Thanks for the quick reply, Shawn! > > The reason I wanted to use Django was so that I could leverage the ORM to > al

Re: Dynamic runtime modeling: which is the best choice?

2013-04-14 Thread Max Demars
maybe combining with a queue like Celery. I am not sure neither about this avenue. Please give me a little feedback about this topic! Max Demars On Tuesday, January 31, 2012 10:15:44 AM UTC-5, Alessandro Candini wrote: > > Hi list. > I need to create an app in which the user can

Re: Password reset email not sent

2013-04-04 Thread Max Lynch
I had the same problem, and it turned out to be that I didn't have a value set for DEFAULT_FROM_EMAIL. Hope that helps someone in the future. On Tuesday, May 4, 2010 4:28:04 PM UTC-5, Shawn Milochik wrote: > > I don't know why your e-mail isn't being sent, but I know that if multiple > User ins

Persist toggle (show/hide) state when form is submitted using window.localStorage

2013-02-25 Thread Max Demars
Hello, I have a form that use the collapse.js of django admin (outiste django admin). I would like to persist the show/hide fieldsets state when the form is submitted. According to this question

Re: Best free web hosting portal

2012-09-10 Thread TJ Max
Heroku is the only one I know of. ep.io had a free option as well but they went out of business. http://www.heroku.com/pricing#0-0 http://www.askthepony.com/blog/2011/07/getting-django-on-heroku-prancing-8-times-faster/ On Mon, Sep 10, 2012 at 1:51 AM, Somnath wrote: > Hello friends, > >

Re: Announcement of GUI for Creating Models

2012-09-09 Thread TJ Max
If you could open source it I would appreciate it. > Do you have a way of setting which fields will be associated with which of > the models? I am moving onto this aspect next and was thinking of maybe > doing draggable divs in a list to make it more interactive. I don't understand this. Could yo

Re: Django Tutorial

2012-09-08 Thread TJ Max
Please tell us what your urls.py is On Sat, Sep 8, 2012 at 6:02 PM, David Perez wrote: > Hi, > > I am new to Django, I am actually starting its tutorial. On part 2 it > enables the admin site, but I can't log in to it. The following error comes > up (see at the bottom): > > If I remember correctl

Re: Announcement of GUI for Creating Models

2012-09-08 Thread TJ Max
Thank you for the feedback. I implemented the simple_mode suggestion. I'll use it personally so I don't have to click two checkboxes. I have simple ungrouped choices almost implemented. Unfortunately I'm getting weird undefined errors in my javascript. Most other field options are enabled now. O

Re: Which IDE should I use for Django?

2011-12-22 Thread Lord Max
For me Eric con linux and pyScripter on windows To my point of view debug is fundamental -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/o6WWR1kA5lAJ. To po

Doesn't render templates any longer

2011-07-27 Thread Max Bachl
e has gone. The same error occurs with every other file as well. I have tried everything. Max -- 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 thi

Doesn't render templates any longer

2011-07-27 Thread Max Bachl
e has gone. The same error occurs with every other file as well. I have tried everything. Max -- 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 thi

Doesn't render templates any longer

2011-07-27 Thread Max Bachl
e has gone. The same error occurs with every other file as well. I have tried everything. Max -- 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 thi

Re: CSS can be loaded but is not applied (Django 1.3, mod_wsgi3.3)

2011-04-10 Thread Max
ache2/mod_mime.so ..and restart Apache, of course. Not really a Django issue... but maybe someone searches for help with a similar problem and finds this via Google and helpful. :) Max On 9 Apr., 21:22, Max wrote: > Hi! > > I recently updated all my Django-development-environment... from

CSS can be loaded but is not applied (Django 1.3, mod_wsgi3.3)

2011-04-09 Thread Max
mod_wsgi. Here is the example for the css-folder (from the httpd.conf): Alias /project/css /Users/max/Documents/project/Website-Code/current/ css Order deny,allow Allow from all If I type "http://localhost/project/css/basicstyle.css";, for example in the browser it displays the C

how it happens the economy is tanked, per the official United States government inquiry

2011-02-10 Thread max stalnaker
http://www.fcic.gov/ -- 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 options,

Re: Serve different page to IE7/8?

2010-11-22 Thread Max Countryman
Conditional stylesheets vs CSS hacks? Paul Irish says the answer is neither: http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ On Nov 21, 2010, at 7:54 PM, Victor Hooi wrote: > I know this is a bit of a hack, but what's the best way to serve up a > different templa

Re: Cherokee for home developing

2010-11-01 Thread Max Countryman
Nov 1, 2010, at 3:21 PM, Max Countryman wrote: > Karim, I would set it up using a UNIX socket. Then all you have to do is rm > the socket path. :) There is no need to kill uWSGI in that case. > > On Nov 1, 2010, at 3:13 PM, Karim Gorjux wrote: > >> On Sun, Oct 31, 2010 at 01

Re: Cherokee for home developing

2010-11-01 Thread Max Countryman
Karim, I would set it up using a UNIX socket. Then all you have to do is rm the socket path. :) There is no need to kill uWSGI in that case. On Nov 1, 2010, at 3:13 PM, Karim Gorjux wrote: > On Sun, Oct 31, 2010 at 01:27, Max Countryman wrote: >> Yes, absolutely. :D Good luck! >

Re: Cherokee for home developing

2010-10-30 Thread Max Countryman
Yes, absolutely. :D Good luck! On Oct 30, 2010, at 5:04 PM, Karim Gorjux wrote: > Yes, I noted that when I edit a url and sometimes the code, I have to > kill the fastcgi process to see the result in the browser. I think > that I could run the fastcgi as explained in the django documentation: >

Re: Cherokee for home developing

2010-10-29 Thread Max Countryman
tally broken," so don't use it! Manual set up is fairly intuitive and not difficult. Karim, you may find that refreshing your project is easier with uWSGI as opposed to something like FastCGI, in reference to your question about having to restart Cherokee each time you make changes.

Re: Cherokee for home developing

2010-10-29 Thread Max Countryman
Generally, yes. If you're using a socket, you can rm the socket path each time you update. That will avoid the need to restart Cherokee. On Oct 29, 2010, at 4:31 AM, Karim Gorjux wrote: > I have just one question. While I'm editing the source of the project, > to see the result I have always to

Re: Cherokee for home developing

2010-10-29 Thread Max Countryman
lease remember you are not the only one reading or contributing to this list; please don't be judge and jury, some people find that insufferable, Thank you, Max On Oct 29, 2010, at 6:48 AM, Robbington wrote: > Dear Paul and Max, > > As I mentioned before please email me direc

Re: Cherokee for home developing

2010-10-29 Thread Max Countryman
On Oct 29, 2010, at 5:45 AM, Robbington wrote: > Actually I mentioned Uwsgi, You missed where I referenced, where was here: On Oct 28, 2010, at 2:27 PM, Karim Gorjux wrote: > Now I solved all my problems working with settings.py. Seems that also > the debug works, but If I'll be again in troub

Re: Cherokee for home developing

2010-10-28 Thread Max Countryman
t 28, 2010, at 14:51, Robbington wrote: > > Hi Max, > > I am not sure what you mean by ' Do not use the uwsgi wizard: it's > currently broken'? > > Rob, > > Ps, should you wish to discuss this further, perhaps it is better you > email me dir

Re: Cherokee for home developing

2010-10-28 Thread Max Countryman
Oh I forgot to mention! Do not use the uwsgi wizard: it's currently broken. Expect a fix soon and refer to the various threads detailing the set up process without the wizard on Cherokee's mailing list. On Oct 28, 2010, at 14:06, Robbington wrote: > Glad to finally see some one using Cherokee

Re: Cherokee for home developing

2010-10-28 Thread Max Countryman
Rob, I have been using Cherokee for Django deployment for almost a year now. I know several other devs who prefer it as well. Also there's always some activity on the Cherokee list itself related to Django. On Oct 28, 2010, at 14:06, Robbington wrote: > Glad to finally see some one using Ch

Re: What does an ideal django workflow setup look like?

2010-10-22 Thread Max Countryman
There was a great article on HN regarding project structure although now I can't seem to find it. Perhaps someone has it bookmarked? On Oct 22, 2010, at 11:02, Ken wrote: > *I've Googled, but have not found any really organized and layman- > friendly overview, which is why I came here* > > I k

Re: SITE_ID

2010-09-25 Thread Max Countryman
Have you set SITE_ID in your settings.py file and run 'python manage.py syncdb'? On Sep 25, 2010, at 10:59 AM, craphunter wrote: > Yes, I have read it, but I don't really get it. What ist the meaning? > What do I have to do?! > > Craphunter > > On 25 Sep., 16:50, craphunter wrote: >> Hey, >>

Re: SITE_ID

2010-09-25 Thread Max Countryman
http://docs.djangoproject.com/en/dev/ref/settings/?from=olddocs#site-id On Sep 25, 2010, at 10:50 AM, craphunter wrote: > Hey, > > I do have problem with SITE_ID. I don't really get this. What is it? > > I am using the django registration from bitbucker. When I click on > register I get the fol

Re: third party application with Django

2010-09-03 Thread Max Countryman
Why not set that up within Apache? On Sep 3, 2010, at 4:30, Goran wrote: > I need to install some php application (forum) in some folder domain/ > forum How can I do this? Django 1.2 Appache with FastCgi, shared > hosting. Is it possible to exclude url "domain/forum" from django > somehow? > >

Re: Multiple django projects

2010-09-02 Thread Max Countryman
Absolutely! :) On Sep 2, 2010, at 12:12 PM, commonzenpython wrote: hey, guys is it possible to have multiple django projects in one server ? -- 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...

Re: Pluggable Q&A app?

2010-05-15 Thread Max Battcher
x27;t had an excuse to try it myself, but it might be what you are looking for. -- --Max Battcher-- http://worldmaker.net -- 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.c

Most Recent Distinct Results

2010-02-21 Thread max
Hi, I have a list of "news" matches for certain companies, ordered by the date they were found. I want to grab 5 results for each company up to 5 companies. I initially approached this problem by just grabbing a large amount of the newest results (LIMIT 100 or so) and then, through python, groupi

Re: State of the Django MPTT Art?

2010-02-11 Thread Max Battcher
rage needs change.) I think its documentation does a pretty good job describing the trade-offs between the various storage methods it supports, and certainly the best form depends on the data being stored. -- --Max Battcher-- http://worldmaker.net -- You received this message because you are sub

Re: DateTimeField arithmetic problem

2009-12-04 Thread Max Battcher
has no attribute 'timedelta' This sounds like a silly import error... It sounds like you've got something like: from datetime import datetime Where you really want just: import datetime (Because datetime.datetime.timedelta doesn't exist, but datetime.timedelta does.) -- --

Re: Sick of defining urls

2009-12-03 Thread Max Battcher
y under TEMPLATE_LOADERS, most apps' templates should just work. No template path fiddling or symlinks necessary. Throw in the egg loader if you are using apps in eggs; write your own loader for custom needs; etc... -- --Max Battcher-- http://worldmaker.net -- You received this message becau

Re: domains vs sub-domains

2009-11-09 Thread Max Battcher
a CloudFront distribution, potentially without having to touch any of my HTML for "instant" bonus performance. Having all my static media hosted by good static media hosts saves me time to think about my dynamic content and tools. Your mileage may certainly vary. -- --Max Battcher--

Re: tag counts

2009-11-05 Thread Max Battcher
That app provides just about everything one needs for tagging, including template filters for tag clouds. -- --Max Battcher-- http://worldmaker.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u

Re: Marking usernames as not for use dynamically

2009-11-02 Thread Max Battcher
years), but I think sometimes the tilde as a sign of a user page is forgotten/under-rated in modern URL planning. -- --Max Battcher-- http://worldmaker.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users

Re: How to get a queryset?

2009-10-19 Thread Max Battcher
omething that I generally find useful in situations like that is Python's groupby function from itertools. -- --Max Battcher-- http://worldmaker.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Django with Cherokee web server

2009-10-09 Thread Max Battcher
ck on wood), and its been running stably for a few months now without the need for any further configuration tweaks or resets. -- --Max Battcher-- http://worldmaker.net --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

database design

2009-09-30 Thread max kalinski
OrderInstances: e.g.: class ProductOrdered(models.Model): order = models.ForeignKey(Order, related_name=_ ("products_ordered")) product = models.ForeignKey(Product,related_name=_ ("products_ordered")) qty = models.PositiveIntegerField(_("Quantity"))

Amazon S3 for File Uploads

2009-06-12 Thread Max Clark
://code.welldev.org/django-storages/wiki/S3Storage For list members currently running this code I would be very interested in feedback / why you went with one vs another / what your experience has been like. Thanks, Max --~--~-~--~~~---~--~~ You received this message because you

Re: Changing tutorial radio button to drop down

2009-01-06 Thread Max
Thanks!! It works now! Max --~--~-~--~~~---~--~~ 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, sen

Changing tutorial radio button to drop down

2009-01-06 Thread Max
drop down code or I need to change the view. Can someone help? Thanks, Max --~--~-~--~~~---~--~~ 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@goog

Re: utf8 works on my dev server but not on my production server

2008-09-01 Thread Max
>> s.decode('utf-8') Traceback (most recent call last): File "", line 1, in ? File "encodings/utf_8.py", line 16, in decode UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1-3: invalid data On Sep 1, 7:26 pm, "Karen Tr

Re: utf8 works on my dev server but not on my production server

2008-09-01 Thread Max
>> s.decode('utf-8') Traceback (most recent call last): File "", line 1, in ? File "encodings/utf_8.py", line 16, in decode UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1-3: invalid data On Sep 1, 7:26 pm, "Karen Tr

utf8 works on my dev server but not on my production server

2008-09-01 Thread Max
Hi, I ve been trying to figure out why I can t handle utf-8 properly on my production server, while it works perfectly on my local django dev server When I try to run this line unicode_data.decode("utf-8") With data coming from DB " Rémi " I get on production only 'ascii' codec can't encode cha

Re: get knowledge about islam...

2008-01-02 Thread Max Sinelnikov
sorry for my last message. We are meting new year in Russia --~--~-~--~~~---~--~~ 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

Re: get knowledge about islam...

2008-01-02 Thread Max Sinelnikov
Йобаные клерики, идити в жопу. Я русский. Мои предки сделали Революцию, я атеист, мне срать на ваше дебильное мнение о мире. Умрите, пожалуйста, сами, не заставляйте тратить на вас патроны. Православные, католики, всякие прочие идиоты идут вместе с вами к стенке. Вы идиоты и вы неизлечимы. Вы не

ANN: Agoranomos (7.12.11)

2007-12-10 Thread Max Battcher
d the next eBay with it, I'd love a small cut. ;) -- --Max Battcher-- http://www.worldmaker.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Creating an archive navigation for date_based.archive_month

2007-09-10 Thread Max Romantschuk
pointing to the Django server.) I've ported my site in a week from an old proprietary CMS, and I must say Django's been a pleasure so far! Thanks again, Chris! Max --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Creating an archive navigation for date_based.archive_month

2007-09-10 Thread Max Romantschuk
.archive_year: the months which have items. But that is a view, and I want to get the same information into the sidebar of my site. How should I do that? I just started using Django a week ago, so this might indeed be really simple. I haven't had time to thoroughly digest the docs just ye

unsubscribe

2007-07-27 Thread Max UNGER
unsubscribe --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For

Re: check for yourself (((;

2006-08-18 Thread Max Penet
Some php projects had to cope with that. I can remember phpbb : http://isc.sans.org/diary.php?date=2004-12-21 But many other projects suffered from this . > is there enough advantage to be had by > parsing the HTML response of a google search, that malware writers > would bother to write that,

Re: Protecting files

2006-08-02 Thread Max Sinelnikov
No, you couldn't. Bobby can upload to this directory, Sussie can upload to this directory, so Sussie can pass Django authorization with her own login/password and can download all files. The right way is to serve files in a directory which is not Apache-accessile as offered by Nebojsa Dordevic. 200

Re: ValidationErrors

2006-06-30 Thread Max Battcher
t for some better way. > > I was thinking of creating a custom tag, but thought I'd ask to make > sure I wasn't missing something. {{ form.name.html_error_list }}, wraps it in a -- --Max Battcher-- http://www.worldmaker.net/ "I'm gonna win, trust in me / I hav

Re: Template: nested for and ManyToMany field problem - MySQL

2006-06-18 Thread Max Battcher
te_url }} > {% endfor %} > > entry.categries is ManyToManyField Then you want entry.categories.all in your template. -- --Max Battcher-- http://www.worldmaker.net/ "I'm gonna win, trust in me / I have come to save this world / and in the end I'll get the gr

Re: POST to view loses POST data

2006-06-17 Thread Max Battcher
ary to force true? > > Yeah, this is kludgy, but the alternative is to put in a attribute on > the request object to say "is this a post?" or force people to fix > "bugs" in their valid HTML. :) That's what request.META["REQUEST_METHOD"] is for. http:

Re: I think I'm doing something wrong...

2006-06-06 Thread Max Battcher
Elver Loho wrote: > Sadly it seems you, along with so many, many others, have fallen into the easiest problem in the book. Your action address should have a following /. http://code.djangoproject.com/wiki/NewbieMistakes#POSTtoviewslosesPOSTdata -- --Max Battcher-- h

Re: Unhappy, reinventing

2006-05-25 Thread Max Battcher
rd thing and not something that I'd want to build with the DOM approach. -- --Max Battcher-- http://www.worldmaker.net/ "I'm gonna win, trust in me / I have come to save this world / and in the end I'll get the grrrl!" --Mach

Re: save() called 2 times.

2006-05-05 Thread Max Battcher
uncate after so many characters just so that URLs don't get out of hand... not to mention all the wasted characters sent in your HTTP responses and emails mentioning unrealistically long URLs. -- --Max Battcher-- http://www.worldmaker.net/ "I'm gonna win, trust in me / I have co

Re: ATTENTION: magic-removal being merged to trunk TODAY

2006-05-01 Thread Max Battcher
ake an optional revision number as an argument (IIRC, --rev=) and it will "de-update" (update your working copy to a previous revision). -- --Max Battcher-- http://www.worldmaker.net/ "I'm gonna win, trust in me / I have come

Re: MR Branch diff than MR trunk?

2006-04-30 Thread Max Battcher
to keep up with Django changes (which is how you should grab the latest magic-removal code), once the merge happens all you need to do is ``svn switch`` to Django's trunk. -- --Max Battcher-- http://www.worldmaker.net/ "I'm gonna win, trust in me / I have come to save this world

Re: How can users only edit their own files?

2006-04-30 Thread Max Battcher
s on browser/OS) the page? -- --Max Battcher-- http://www.worldmaker.net/ "I'm gonna win, trust in me / I have come to save this world / and in the end I'll get the grrrl!" --Machinae Supremacy, Hero (Promo Track) --~--~-~--~~~---~--~~ You re

Re: Ecommerce & Django

2006-04-13 Thread Max Battcher
go in the name you could probably get it approved. With that said, I have a stupid, but simple suggestion: djecommerce, which is obviously superior to normal ecommerce in that g (dje) is e + 2! -- --Max Battcher-- http://www.worldmaker.net/ "I'm gonna win, trust in me / I have come to

  1   2   >