Re: Noob: How do I get this app to work :(

2013-05-18 Thread Artem Zinoviev
hi Todd, you try using generic views and you can`t :-) read this article - https://docs.djangoproject.com/en/1.5/topics/class-based-views/, it can help you. best regards, пятница, 17 мая 2013 г., 20:08:31 UTC+3 пользователь Todd Wickizer написал: > > Thanks Tom. I tried copying and pasting the

Re: Noob: How do I get this app to work :(

2013-05-18 Thread Artem Zinoviev
try use something like this - https://github.com/jtuz/django-events-calendar четверг, 16 мая 2013 г., 23:58:52 UTC+3 пользователь Todd Wickizer написал: > > Hello there, > > I just install Django yesterday. I am trying to take a calendar app and > edit it for my own means. Unfortunately I am a

Re: Template Inheritance doubt

2013-05-18 Thread Artem Zinoviev
if you have base.html and sidebar.html, base.html file just declare {% block sidebar %} section and sidebar.html make implementation of it, if you have SidebarView, then you load sidebar.html and this file take all from {% extends base.html %}. And if you try load base.html from SidebarView -

Re: Trees in Django

2013-05-18 Thread Artem Zinoviev
first parameter of render() function must be request... try do it like this: * return render(request, "tree.html", {'annotated_list':annotated_list}) * пятница, 17 мая 2013 г., 17:28:12 UTC+3 пользователь Cody Scott написал: > > I am categorizing models in a tree. The tree is created based on

Re: new to Django and building web applications. Advice with postgresql

2013-05-18 Thread Artem Zinoviev
you want learn django or postgres ? :-) postgres is cool stuff but it not requited... try this course - https://www.udemy.com/coding-for-entrepreneurs/, (in reddit you can find only

Re: new to Django and building web applications. Advice with postgresql

2013-05-18 Thread Artem Zinoviev
this is the best way - https://django.2scoops.org/, and you can use something like this django template project for your task -h ttps://github.com/nigma/django-modern-template, it have memcached integrated AWS S3 for static files and so on...

Re: OperationalError: (1040, 'Too many connections')

2013-05-18 Thread Artem Zinoviev
use postgreSQL пятница, 17 мая 2013 г., 21:24:10 UTC+3 пользователь frocco написал: > > Hello, > > How can I resolve this in django 1.5? > > webfaction allows max 90 connections. > > Thanks > -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Wrong formatting while using Tabular Inlines in Django admin

2013-05-18 Thread Artem Zinoviev
you see this in safari only or chrome do it exactly? суббота, 18 мая 2013 г., 3:34:38 UTC+3 пользователь Nikos Delibaltadakis написал: > > I use Django 1.5.1 out of the box in a virtual environment in my Mac. I > just created an app with two models, so the one can be used as inline in > the

Re: Wrong formatting while using Tabular Inlines in Django admin

2013-05-18 Thread Artem Zinoviev
this can help? - http://www.codingnot.es/bootstrap-your-django-admin-in-3-minutes/ суббота, 18 мая 2013 г., 3:34:38 UTC+3 пользователь Nikos Delibaltadakis написал: > > I use Django 1.5.1 out of the box in a virtual environment in my Mac. I > just created an app with two models, so the one can

Re: how to create google app for login in django project?

2013-05-18 Thread Artem Zinoviev
Hi Avnesh, you need google API consolefor creating app. docs . After you get your secret key use django-social-auth, or if you need login user only -use loginza

Re: Django in the Mac App Store with BitNami

2013-05-18 Thread Artem Zinoviev
sorry, but why you use apache? one-click deployment in local computer? or in heroku? Can i use createproject from template? why You don`t like old way by - mkvirtualenv spam && pip install django && django-admin.py startproject ??

Re: OperationalError: (1040, 'Too many connections')

2013-05-19 Thread Artem Zinoviev
en I look at the > file, I see no duplicates. > > I am open to suggestions on converting. > > Thanks > > On Saturday, May 18, 2013 12:51:28 PM UTC-4, Artem Zinoviev wrote: >> >> use postgreSQL >> >> пятница, 17 мая 2013 г., 21:24:10 UTC+3 пользователь fr

Re: no module name.models

2013-05-19 Thread Artem Zinoviev
try: from ecomstore import Category, Product this also can help http://stackoverflow.com/questions/6508545/importerror-no-module-named-models суббота, 18 мая 2013 г., 22:40:46 UTC+3 пользователь Kakar написал: > > I'm practicing from a book Begining django e-commerce and m stuck in one >

Re: how to import excel file into django models?

2013-06-01 Thread Artem Zinoviev
Django models - it`s ORM to database, and exel is not database it`s only zipped xml file. You can convert your .xslt to .csv format and export it in db. суббота, 1 июня 2013 г., 12:21:33 UTC+3 пользователь Ali hallaji написал: > > > -- You received this message because you are subscribed to

Re: save data using checkbox click an input

2013-06-01 Thread Artem Zinoviev
How you send your form? Checkbox don`t send your form... Why you duplicate logic in views and template? ( for type in typeList: if not type.parent_type_id: *** && {% for type in typeList%} {% if type.parent_type_id == None %} ). *** P.S. All this code is

Re: (error) tutorial 2: local admin page not working

2013-06-01 Thread Artem Zinoviev
Ok. so you have settings of your database... But did you do something for enabling admin ? (my answer is Nope.) See your urls.py file (there is a comment line - read it closely.) Then go to settings.py file and find INSTALLED_APPS dict(in comments here you can read all.) Only after it you

Re: linux or windows

2013-06-01 Thread Artem Zinoviev
Django is a python. And nothing more... if you want be a python developer linux is must have. Of course you can develop in windows and play with you code some times... But a lot of python package don`t work in windows. if you want meet new problem every day - windows is your choice :) пятница,

Re: django , python and ides

2013-06-01 Thread Artem Zinoviev
vim is the best IDE for python/django. Second place i think is for sublime. пятница, 31 мая 2013 г., 13:54:42 UTC+3 пользователь tony gair написал: > > Python and Django are not my first languages and currently I am using it > like I would a compiled language inside gedit on debian wheezy. I was

Re: Django & Ember

2013-06-01 Thread Artem Zinoviev
It`s whery simple. https://github.com/noirbizarre/django-ember. суббота, 1 июня 2013 г., 8:34:01 UTC+3 пользователь JJ Zolper написал: > > Hello, > > So I'm thinking about bundling together Django and Ember. The reason is my > front end is going to be lots of data in realtime. Think like

Re: Bootstrap and Django together at last!

2013-06-01 Thread Artem Zinoviev
did you think about add requirements and README file in project? среда, 29 мая 2013 г., 0:44:58 UTC+3 пользователь Kevin написал: > > Hello everyone! > > I thought I'd provide a recently released Django app I built. I have > listed it on several Django communities including my blog, but I

Re: Bootstrap and Django together at last!

2013-06-01 Thread Artem Zinoviev
https://github.com/nigma/django-modern-template https://bitbucket.org/danjac/django-bootstrap-template https://github.com/estebistec/django-twitter-bootstrap https://github.com/rbrady/django-bootstrapped and all templates include bootstrap and other things: