Re: Django documentation tutorial part 1

2017-02-06 Thread Sergiy Khohlov
I have not seen setting.py in your project . Also could you please send your runserver command and output Many thanks, Serge +380 636150445 skype: skhohlov On Mon, Feb 6, 2017 at 7:49 PM, Philip wrote: > Hello, > > I am working through the tutorial included with the

Re: change site_header and site_title and ... dynamically

2017-02-03 Thread Sergiy Khohlov
you can pass this values from view to template using context_data Many thanks, Serge +380 636150445 skype: skhohlov On Fri, Feb 3, 2017 at 8:59 AM, wrote: > hi guys > i wanna to change site_header and site_title and other thing e.g > list_per_page and ,,,

Re: prepopulate form with model instance values using UpdateView and ModelForm

2017-01-18 Thread Sergiy Khohlov
Hello, I had a similar problem (but I'm using DetailView for sending some additional data) and I hope I can help Usually editing page is using GET for receiving default data and POST for sending data from form to view ( we are skipping ajax way) 1) You would like to set initial data to

Re: Happy New Year 2017

2016-12-31 Thread Sergiy Khohlov
Happy new years! Better code, better goal and winning! 31 груд. 2016 20:57 "Lekan Wahab" пише: > Happy New year guys. > Let's do more of this next year. > > On Sat, Dec 31, 2016 at 7:49 PM, Robin Lery wrote: > >> Happy new year! >> >> On 1 Jan 2017

Re: Mysql GeoDjango Distance search

2016-11-27 Thread Sergiy Khohlov
MySQL does not have this support. I've tested few potential solution but most of them have a hige problem with performance. Many thanks, Serge +380 636150445 skype: skhohlov On Fri, Nov 25, 2016 at 1:52 PM, Karesh Arunakirinathan wrote: > down votefavorite >

Re: Filtering in ListView

2016-11-25 Thread Sergiy Khohlov
simplest way is update get_content_data in view: Take a look at example : class CompanyDetail(TemplateVariables, LoggedInMixin, DetailView): """ """ model = Company template_name = 'company/company_detail.html' def cars(self): return

Re: django runserver does not work

2016-10-08 Thread Sergiy Khohlov
have you are opening 127.0.0.1:8000 ? Many thanks, Serge +380 636150445 skype: skhohlov On Sat, Oct 8, 2016 at 6:09 AM, 居飞 wrote: > Hi: >I installed the django 1.10.2 on Centos, after I started a project and > run the "python manage.py migrate", then run "python

Re: Cache-Control header for Flat Pages

2016-09-29 Thread Sergiy Khohlov
Another way is writing middleware class such as: class MyFlatMiddleware(FlatpageFallbackMiddleware): def process_response(self, request, response): response =super(sMyFlatMiddleware, self).process_response(request, response) response['HEADER_NAME'] = "HEADER_VALUE"

Re: Cache-Control header for Flat Pages

2016-09-29 Thread Sergiy Khohlov
could you please example your view.py of those flat pages. In case of CBV syntax is little different but it is possible to add any response header using view. Many thanks, Serge +380 636150445 skype: skhohlov On Thu, Sep 29, 2016 at 7:30 AM, Web Architect wrote: >

Re: django server

2016-09-28 Thread Sergiy Khohlov
please send output of python manage.py run server Many thanks, Serge +380 636150445 skype: skhohlov On Wed, Sep 28, 2016 at 5:06 PM, NOOREEN wrote: > Problem in launching django server in ubuntu 14.04.How to resolve the > given issue? > > -- > You received this

Re: Django Ticketing Application

2016-09-12 Thread Sergiy Khohlov
Hello Alexandra, Have have no answer due to no question. You have decided to do application. It is good , but you have not informed us about steps which are done. In tho case nobody can help you. I was thinking that this a adv email for popularizing you commercial chat client. No more. Many

Re: iregex doesn't work properly

2016-08-30 Thread Sergiy Khohlov
00 sec) > > > вторник, 30 августа 2016 г., 15:31:51 UTC+6 пользователь Sergiy Khohlov > написал: >> >> try to execute from console : >> SELECT id FROM `clients_order_process` WHERE `clients_order_process` >> .`step_description` REGEXP '^заказ роутер.$' >> >> M

Re: iregex doesn't work properly

2016-08-30 Thread Sergiy Khohlov
>> >> Which one step has issue ? >> >> Many thanks, >> >> Serge >> >> >> +380 636150445 >> skype: skhohlov >> >> On Tue, Aug 30, 2016 at 10:51 AM, Denis Yu <denis...@gmail.com> wrote: >> >>> Ye

Re: iregex doesn't work properly

2016-08-30 Thread Sergiy Khohlov
> Yes, i've seen. > > could you pls say one more ideas to check? > > > > > воскресенье, 28 августа 2016 г., 21:11:56 UTC+6 пользователь Sergiy > Khohlov написал: >> >> I've made mistake : "$" should be in request not "%" >> >

Re: Djang freelance hourly rates

2016-08-28 Thread Sergiy Khohlov
Related to country skills etc. Based on the question I would like to say 3$. 28 серп. 2016 21:41 "Sithembewena Lloyd Dube" пише: > Out of curiousity, what do those who are freelancing on Django projects > charge per hour? > > -- > Regards, > Sithembewena > > -- > You received

Re: iregex doesn't work properly

2016-08-28 Thread Sergiy Khohlov
order_process WHERE > step_description REGEXP BINARY '^заказ роутера%' > > > Pls, explain, what way do you recommend using raw string? > > > thanks > > > > > воскресенье, 28 августа 2016 г., 0:58:24 UTC+6 пользователь Sergiy Khohlov > написал: >> >> N

Re: iregex doesn't work properly

2016-08-27 Thread Sergiy Khohlov
--+ > 8 rows in set (0,01 sec) > > > so, I found | character_set_server | latin1 > is this the problem? > > > > > > суббота, 27 августа 2016 г., 19:28:18 UTC+6 пользователь Sergiy Khohlov > написал: >> >> Try to check this via mysql shell. It wil

Re: iregex doesn't work properly

2016-08-27 Thread Sergiy Khohlov
Try to check this via mysql shell. It will be nice to know codepage at system, database and django project. Have you checked this with Latin charset already ? 27 серп. 2016 16:06 "Denis Yu" пише: > Hi, > > Someone please, help to resolve my problem with iregex ! > > using

Re: Attribute error, with a very basic banking app

2016-08-26 Thread Sergiy Khohlov
> >> On Fri, Aug 26, 2016 at 10:13 AM, Neil Hunt <hunt.n...@gmail.com> wrote: >> >>> heh heh. I don't fully appreciate the usefulness of CBV at the moment. >>> Getting a simple example working helps as much as reading the tutorial. >>> Thanks again for y

Re: Attribute error, with a very basic banking app

2016-08-26 Thread Sergiy Khohlov
I can't believe that's all I have to add to get the class based views to > work. It seems easier to get it to work than I thought it would be. Now > that you've explained it. Thank you so much for that. > > Kind regards, > > Neil > > On Fri, Aug 26, 2016 at 11:46 AM, Serg

Re: Attribute error, with a very basic banking app

2016-08-26 Thread Sergiy Khohlov
Hello Neil, It is nota problem to use Class based view. Could you please update your views.py with next code. Look like you would like to have detail of the deposit in this case add next string to the header from django.views.generic import DetailView from models import Account1, Person

Re: New to Django

2016-08-20 Thread Sergiy Khohlov
I've created project for managing virtual machines via libvirt using django few years ago. Also you can take a look at ganeti project. I'm ready to answer any question related to django and cloud computing. Thanks, Serge 20 серп. 2016 20:23 "Wolf Painter" пише: > If you

Re: Odd problem: some database updates do not appear on other pages until server restart

2016-08-18 Thread Sergiy Khohlov
Hello, This is trivial mistake. Use form.__init__ if you would like to change it dynamically 18 серп. 2016 22:14 "bobhaugen" пише: > Also, how pervasive is this behavior? Does it affect all querysets > generated by model methods? I do that all over the place. This could be

Re: Django 1.10

2016-08-09 Thread Sergiy Khohlov
On Tue, Aug 9, 2016 at 6:46 PM, wrote: > view_course Send definition of this function view_course Many thanks, Serge +380 636150445 skype: skhohlov -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Launching websites

2016-08-08 Thread Sergiy Khohlov
Hello David, You have mixed different tasks. I have a question for you. What kind of goal do you have? Are you planing to have mail server, web server, dev box etc? How much money are you going to spend? Do you have sysadmin ? Of course first question has high priority. Thanks., Serge 8 серп.

Re: redirect NoReverseMatch Django error

2016-08-05 Thread Sergiy Khohlov
Also please add your templates. Looks like you are using URLs in the templates 5 серп. 2016 14:05 "ludovic coues" пише: > Have you added your app to the INSTALLED_APPS setting ? > > 2016-08-05 10:05 GMT+02:00 Dimitris Tsiktsiris : > > Here are my view and

Re: Installation

2016-07-27 Thread Sergiy Khohlov
Take a look at https://jeffknupp.com/blog/2012/02/09/starting-a-django-project-the-right-way/ this is perfect doc related to your situation s. 27 лип. 2016 12:04 "Its Eternity" пише: Hey, a friend recently wrote my a web-app for me to use however I am not sure how I

Re: Django selected value

2016-07-25 Thread Sergiy Khohlov
Many to many fields are not good due to performance issues. It is not important for small Db but for big it is a problem. Simplest way for understanding form is a adding debug print(form)inside your views get function. Next step is turning off form autocommit, update your form fields and save it.

Re: Getting an error when I try to make an html page on django

2016-07-19 Thread Sergiy Khohlov
Looks like you have deleted artist with Id#2. 19 лип. 2016 18:21 "Jose" пише: > > > On Tuesday, July 19, 2016 at 8:15:54 AM UTC-4, Jose wrote: >> >> I was watching a Django tutorial video and on the video the guy writes >> the exact same code I have on the picture.

Re: running django 1.9 problem

2016-07-13 Thread Sergiy Khohlov
Simple way is using virtual environment. In this case version of system is not important. I'm using Mac for coding without any issues. 12 лип. 2016 14:28 "Nicolas Favede" пише: > hi i am a bit used to python i have a mac coming with 2.7.6 version and > install 3.4 that

Re: GeoDjango and Google Maps

2016-07-02 Thread Sergiy Khohlov
Hello, Django Geo API does not have MapWidget. And this error is expected. List of supported widget is place here : https://docs.djangoproject.com/ja/1.9/ref/contrib/gis/forms-api/ One of the simplest way of the adding map to the page is using leaflet library which is nice supported. I'm

Re: Django TCP Socket Communication

2016-06-17 Thread Sergiy Khohlov
Simple script receives data from GPS tracker and stores data into database. Django has geodjango application for plotting point at the map. 17 черв. 2016 08:16 "Anil reddy reddy M" пише: > How i can store gps output in django model, how django will communicate > with

Re: Why in Django the field IntegerRangeField not worked with None?

2016-06-16 Thread Sergiy Khohlov
Look like it is expected behaviour. filter builds sql, any sql should have sence. What is sence with broken sql ? Many thanks, Serge +380 636150445 skype: skhohlov On Wed, Jun 15, 2016 at 1:09 PM, Seti Volkylany wrote: > The model next: > > class

Re: LoginRequiredMixin ignored

2016-06-16 Thread Sergiy Khohlov
please send your http header. Look like auth header is present by browser default Вірусів немає. www.avast.com

Re: Django TCP Socket Communication

2016-06-16 Thread Sergiy Khohlov
Have ready this kind of application using django + postgis. At this moment protocols Cabon and teltronika are supported. Are you interested ? Many thanks, Serge +380 636150445 skype: skhohlov On Thu, Jun 16, 2016 at 2:37 PM, Jani Tiainen wrote: > Oops, apparently you

Re: how to forbidden mouse click and keyboard typing when loading page after press submit button in django web?

2016-06-10 Thread Sergiy Khohlov
This is not django question. Let's imagine. User has pressed submit. Browser is forming request and data is passing to web app. Has web aapp informed about user typing? Of course no. Simple redirect makes forgotting filled form. 10 черв. 2016 04:36 "meInvent bbird" пише: >

Re: negative float

2016-05-12 Thread Sergiy Khohlov
Hard to help with this small code. Could you please send me all function or class from your view.py ? 12 трав. 2016 22:37 "Григор Колев" пише: > #models.py > coef = models.DecimalField(max_digits=5, decimal_places=4, default=0.0100, > verbose_name='Коефицент') > > >

Re: Django Models

2016-05-06 Thread Sergiy Khohlov
simplest way is using filter() against all() Take a look at https://docs.djangoproject.com/en/1.9/ref/models/querysets/ Many thanks, Serge +380 636150445 skype: skhohlov On Fri, May 6, 2016 at 5:27 PM, Omar wrote: > Gretting, I have in my DataBase (Directorios)

Re: google/bing maps using django

2016-04-09 Thread Sergiy Khohlov
Check django-leaflet. Also best way for storing lon lat use geodjango with postgis 9 квіт. 2016 23:26 "Xristos Xristoou" пише: > if i have two fields in my model with coordinates lon = models.FloatField > () > >lat = models.FloatField()

Re: Both directly transfer data from django to jQuery

2016-03-10 Thread Sergiy Khohlov
Ajax ? Have you checked this one ? Many thanks, Serge +380 636150445 skype: skhohlov On Thu, Mar 10, 2016 at 2:18 PM, wrote: > I had method model that generate dict, sample: > > { > 'translators': 5, > 'glossaries': 1, > 'abbrs': 0, > } > > I want

Re: variable to a template

2016-03-02 Thread Sergiy Khohlov
e\static\mysite\scorr > > Thanks for your help > > Il giorno mercoledì 2 marzo 2016 11:52:05 UTC+1, Sergiy Khohlov ha scritto: >> >> original path og your image please. >> Also setting for STATIC_ROOT from setting.py send please >> >> Many thank

Re: variable to a template

2016-03-02 Thread Sergiy Khohlov
original path og your image please. Also setting for STATIC_ROOT from setting.py send please Many thanks, Serge +380 636150445 skype: skhohlov On Wed, Mar 2, 2016 at 12:41 PM, 'luca72' via Django users < django-users@googlegroups.com> wrote: > Hello i have write this in a template: > {%

Re: Default Site

2016-02-27 Thread Sergiy Khohlov
This is task for apache not for django. G 26 лют. 2016 23:06 пише: > no > Hi, > > > Shouldn’t django.contrib.sites.models.SiteManager.get_current() first check the given request to determine the current site and then look at the SITE_ID setting? > > > I would like to have multiple

Re: ValidationError syntax different than in Django 1.9 docs

2016-02-14 Thread Sergiy Khohlov
Check localization page https://docs.djangoproject.com/en/1.9/topics/i18n/ Many thanks, Serge +380 636150445 skype: skhohlov On Sun, Feb 14, 2016 at 5:23 PM, Andrzej Olchawa wrote: > Hi guys, > > first of all, I'm new to Django and this group. > > I've just

Re: Send an object parameter from views.py to forms.py

2016-02-10 Thread Sergiy Khohlov
I've moved to CBV sometime ago and I can not write your code on fly: Let imagine: 1) User request page using "GET" 2) User set some values and send it using "POST" 3) New page is shown using new "GET" id_medioedit is set ant stage 2 and answer at 3 is ok. But you dont know how to set it

Re: mathematical function and django connect

2016-02-09 Thread Sergiy Khohlov
Add regext to the url.py and view function to it Add function to the view.py accepted function values from request object and return value of your functions Create template which few input values field and shown result Many thanks, Serge +380 636150445 skype: skhohlov On Tue, Feb 9,

Re: Polymorphic class and geomodels?

2016-02-08 Thread Sergiy Khohlov
e with measures that is related to three models with different > geometries, so I can't use a foreign key in measure table, I don't > understand the use of related obj, can you point me to a good source ? > > thanks > > On Friday, February 5, 2016 at 7:40:53 PM UTC+1, Sergiy Khohlov

Re: Scaling Django

2016-02-07 Thread Sergiy Khohlov
xte...@gmail.com> wrote: > Hi Sergiy, are you referring to my post or to the OP? > > On Sunday, February 7, 2016 at 6:03:11 AM UTC+8, Sergiy Khohlov wrote: >> >> Print database structure. >> Check possibility of DB normalization. >> > > You might have meant "de

Re: django現在インストールエラーにつきまして

2016-02-06 Thread Sergiy Khohlov
look like you have used pip or easy_install for downloading django Verify that django is ok python -c "import django; print(django.__path__)" After this django-admin startproject mysite this command creates mysite dir and settings.py of course Many thanks, Serge +380 636150445

Re: Scaling Django

2016-02-06 Thread Sergiy Khohlov
Print database structure. Check possibility of DB normalization. 100 GB (my "record" is 452 GB )is not so high but this size requires some attention. (Look like you Mysql used only one db file: try to set table per file. Check index size , and verify that indexes are working corectly) Review

Re: Polymorphic class and geomodels?

2016-02-05 Thread Sergiy Khohlov
> > L > > > On Friday, February 5, 2016 at 10:51:31 AM UTC+1, Sergiy Khohlov wrote: >> >> I would like as simple question : Are you planning to have some >> advantages using this abstract class ? >> I’m working on similar product (look like you are making en

Re: Polymorphic class and geomodels?

2016-02-05 Thread Sergiy Khohlov
I would like as simple question : Are you planning to have some advantages using this abstract class ? I’m working on similar product (look like you are making energy pipeline system based on postgis and gjango). My product is GTS system which includes POINTS (datas are received via GTS

Re: How to know our Django version

2016-02-04 Thread Sergiy Khohlov
python import django print (django.version) Many thanks, Serge +380 636150445 skype: skhohlov On Thu, Feb 4, 2016 at 6:15 PM, wrote: > Hello >> > > because i want to know if its possible to have "featured news" in our news > section. > > as i looked on a

Re:

2016-02-04 Thread Sergiy Khohlov
ecome >> unavailable and it is why I get exception "Resource temporarily >> unavailable" ? >> >> I will try turning down verbosity (so shouldn't be logging this anymore), >> and see if it help... (verbosity=0) >> >> >> >> On Wednesd

Re: Scaling Django

2016-02-03 Thread Sergiy Khohlov
Hello, Your first words have a answer. Swift coding always produces performance problem. This is expected. Looks like few new engineers use another one technology and would not like to use django. This a reason of his criticism. Mostly low performance is related to the DB performance. I'm

Re:

2016-02-03 Thread Sergiy Khohlov
Hello Denis, This issue is not related to the django-require. Look like you have two files (with same name ) at the different paths. New collect static is trying to colelct both files and can not decided which one should be used. Could you please send part of the section

Re: Re: help with the django tutorial part 1

2016-02-02 Thread Sergiy Khohlov
SHould be url(r'^$', views.index , name='index') you have missed ' Many thanks, Serge +380 636150445 skype: skhohlov On Tue, Feb 2, 2016 at 3:58 PM, 林攀 <18610710...@163.com> wrote: > url(r'^/$, views.index, name='index'), > > > > > > -- > *林攀* > > At 2016-02-02 20:35:58,"Bipul Raj"

Re: Access denied for MySQL user in Django

2016-01-17 Thread Sergiy Khohlov
Using password no. Have you set notempty password with creating table permission? 15 січ. 2016 18:20 "Galil" пише: > Hi Fred, > > The user cdraccess is not the root user and it does not have the rights to > access table 'user'. I deleted the guest user as root but nothing

Re: Performance difference between django query and stored procedure (MySQL)?

2016-01-08 Thread Sergiy Khohlov
better way is using storing procedure. You also can compare trivial SQL command and stored procedure performance. Result is a same such as django and stored procedure (or near to the same) Many thanks, Serge +380 636150445 skype: skhohlov On Fri, Jan 8, 2016 at 4:30 PM, Maor Levy

Re: ModelForm.is_valid() doesn't work the first time but does the second

2016-01-02 Thread Sergiy Khohlov
> > > > <https://lh3.googleusercontent.com/-jyOjeZShpXU/VoibBXC7gPI/AFU/WeJ9TBxQemQ/s1600/Screen%2BShot%2B2016-01-02%2Bat%2B9.52.18%2BPM.png> > > --M > > On Saturday, January 2, 2016 at 9:48:39 PM UTC-6, Sergiy Khohlov wrote: >> >> Is_valid is w

Re: ModelForm.is_valid() doesn't work the first time but does the second

2016-01-02 Thread Sergiy Khohlov
Is_valid is working. You have problem with save. Check database setting. 3 січ. 2016 04:18 "Michael Molloy" пише: >ve > This is running in Openshift with Python 3.3 and Django 1.8.4 > > Here's my model: > > class Users(models.Model): > first_nm = models.CharField('First

Re: wsgi.py apache segmentation fault

2015-12-31 Thread Sergiy Khohlov
Is code working right via manage runserver? 30 груд. 2015 13:59 "Baris Adrian" пише: > hi Eugenio, > > Did you get a solution to this problem. > > If so what? because i am stuck and i could appreciate the help. > > Kindest REgards > > On Thursday, October 8, 2015 at

Re: django 1.9 - application does not

2015-12-27 Thread Sergiy Khohlov
Django toolbar does not work with 1.9 please comment it in and restart server 24 груд. 2015 19:36 "Shekar Tippur" пише: > Just for testing, I downgraded django to 1.8.4 > > # pip-3.4 install Django==1.8.4 > > You are using pip version 6.1.1, however version 7.1.2 is available.

Re: django 1.9 - application does not

2015-12-24 Thread Sergiy Khohlov
I've had a similar problem. And use next way to solve: 1) Create new project at the new directory and verify that Django 1.9 is OK 2) Check (compare ) setting related to the TEMPLATE in setting.py file 3) Disable installed add modules At this step I detected that django-debug-toolbar

Re: I might do it wrong -- How to get and process an object from FormView ?

2015-12-11 Thread Sergiy Khohlov
Form.save returns object. You don't need tricking with post directly. 11 груд. 2015 22:30 "Dino" пише: > The form submission and processing as I've done it works, > but I'm not sure its the right way. > > The part I'm concerned about is detailed in these 3 steps: > -

Re: But I can not figure out how to write the code to add a page. Thank you so much.

2015-12-06 Thread Sergiy Khohlov
ниг и их можно отдельно вывести. Здест > тоже нет проблем (создам отношение к User один к одному) - это тоже понятно. > > в) > Остается, только не понятно то что описал выше. Что бы при создании книги, > страницы присоединялись именно к вновь созданной книге, без выбора из > спи

Re: But I can not figure out how to write the code to add a page. Thank you so much.

2015-12-05 Thread Sergiy Khohlov
Two models book and page. Page has key field to book . page is attached to the book page as related object. 5 груд. 2015 17:42 "Валерий Бовсуновский" пише: > But I can not figure out how to write the code to add a page. > > Guys, please natolknite the idea. If possible, reset

Re: Encrypted web mail

2015-08-16 Thread Sergiy Khohlov
Anyway this not solve Uri problem. Man in black ask about access to the user private data. Problem with auth by hash? It is not a problem. Reset password generates new hash. Let's imagine: Bad guy hack into system and has all data. passwords hash other tricks hosting at the server side is not a

Re: Encrypted web mail

2015-08-15 Thread Sergiy Khohlov
Looks like it is not hard to change postfix maildrop agent to crypt mail passing to user dir. But some work should be done at mua side. Anyway it is not a question of django 15 серп. 2015 15:49 "Uri Even-Chen" пише: > Thanks Pedro, actually I understand cryptography and I agree

Re: Newbie

2015-08-02 Thread Sergiy Khohlov
Welcome aboard 2 серп. 2015 16:38 "Matthew Yankey" пише: > Hi, matthew here. > > I just started reading about django. hope to learn from this group as well. > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group.

Re: How to debug? -- DoesNotExist at /admin/login/

2015-07-14 Thread Sergiy Khohlov
Looks like you have missed char. Admi/login is requested not admin. I hope it is typo 14 лип. 2015 00:13 "elim" пише: > I got error when I did > $ python manage.py runserver > Performing system checks... > > System check identified no issues (0 silenced). > July 13, 2015 -

Re: 想用中文说清楚:我在远程工作机服务器上建立了django框架,想启动web server ,启动成功,但是无法打开127.0.0.1:8000 ,中间端口转接该怎么做

2015-06-11 Thread Sergiy Khohlov
127.0.0.1 is always your local PC. you should use another one interface for accessing from remote host. if your local PC has IP 192.168.0.10 right syntax is django-admin.py runserver 192.168.0.10:8000 Many thanks, Serge +380 636150445 skype: skhohlov On Thu, Jun 11, 2015 at 5:26 PM,

Re: How to change type of field in model, when database is already populated ?

2015-05-16 Thread Sergiy Khohlov
Dump your data in the SQL file. Of course , separate structure and data. Update structure. Verify ability to switch into digit. If you have using Digit as string in dump you can update data manually or by see or ask. If previous data contains char then no chances. 16 трав. 2015 16:26 "mangu

Re: SETTINGS Error

2015-05-11 Thread Sergiy Khohlov
You have not configured database in your setup. Your error is popped up in this case. 11 трав. 2015 18:57, користувач "SUBHABRATA BANERJEE" < subhabrata.bane...@gmail.com> написав: > Dear Group, > > I am pretty new to Django. I was using > https://docs.djangoproject.com/en/1.8/intro/tutorial01/

Re: .get() has unexpected behaviour on a queryset after previously applying .order_by().distinct()

2015-04-18 Thread Sergiy Khohlov
Both methods use SQL request s. Try to test using SQL directly. Database has no idea about a returning order. Good result for filter is "nice shot". Adding and deleting objects you broke filter method. Use always order_by for this kind of purpose. 15 квіт. 2015 19:46, користувач "Nick Smith"

Re: Django beggining problems

2015-03-17 Thread Sergiy Khohlov
Answer is simple. Notepad opens python files.. Try to start python.exe djangoadmin 13 бер. 2015 18:55, користувач написав: > i am following the tutorial right now... > I use windows 7 > python 2.7.6 > and django 1.7.6 > > when i run "django-admin

Re: Question about subdomains.

2015-02-11 Thread Sergiy Khohlov
Also one project can serve few domain names. 10 лют. 2015 17:22, користувач "Chen Xu" написав: > Hi > I am using Django to build a website. > > I saw some websites have www.ABC.com, support.ABC.com, and career.ABC.com. > I wonder how this is achieved. Are these 3 different

Re: django views error

2015-01-28 Thread Sergiy Khohlov
Second function has ident mistakes .2last lines have additional space. 27 січ. 2015 09:31, користувач "Stephen J. Butler" написав: > Not all your lines have the same indent level in your profile method. Line > 52. > > On Tue, Jan 27, 2015 at 1:03 AM, Mosharof sabu

Re: Select Field With Other option

2015-01-27 Thread Sergiy Khohlov
You can not do it directly. This should be do by JavaScript's using at HTML side. All field s are added to form and some of them are hidden. 27 січ. 2015 00:29, користувач "Paul Royik" написав: > I need to build a form field with a special select field. > Select field

Re: Django for latex

2015-01-23 Thread Sergiy Khohlov
try to use texi2pdf Of course this list for django not LaTex Many thanks, Serge +380 636150445 skype: skhohlov On Fri, Jan 23, 2015 at 10:37 AM, Hitesh Sofat wrote: > I want to generate pdf using latex. Please guide me for this , anybody > having any tutorial

Re: Canvas OAuth2 From Django View

2015-01-17 Thread Sergiy Khohlov
Is CRFS protection enabled ? 15 січ. 2015 18:51, користувач "Henry Versemann" написав: > First let me say that I haven't done a lot of stuff with either Python or > Django, but I think I understand most of the basics. > I am trying to get an access token back from the

Re: python with django orm code , after exits, the entry from db revert backs

2015-01-12 Thread Sergiy Khohlov
Have you enabled autocommit to yes? -- 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, send email

Re: Class Based Views tutorials

2015-01-06 Thread Sergiy Khohlov
ns defined rather than having a separate CreateView class. Seemed to handle both create and update ok. > > On Tuesday, January 6, 2015 9:39:49 AM UTC-5, Sergiy Khohlov wrote: >> >> Diff is simple : UpdateView is using for changing already created object. CreateView is using

Re: Class Based Views tutorials

2015-01-06 Thread Sergiy Khohlov
Diff is simple : UpdateView is using for changing already created object. CreateView is using for creating new object. I have few simpleast class for your request. But I have not commented yet. Many thanks, Serge +380 636150445 skype: skhohlov On Tue, Jan 6, 2015 at 3:49 PM, Brad Rice

Re: Hierarchical User Groups

2014-12-12 Thread Sergiy Khohlov
I have a code for product and product category. Look like it is a same task. Are you interested in ? Many thanks, Serge +380 636150445 skype: skhohlov On Fri, Dec 12, 2014 at 12:37 AM, Wellington Cordeiro wrote: > > I'm building a project where we need to have a

Re: default login template not found (registration/login.html)

2014-11-20 Thread Sergiy Khohlov
Check your settings.py for TEMPLATE_DIRS Many thanks, Serge +380 636150445 skype: skhohlov On Thu, Nov 20, 2014 at 7:48 AM, 顏大剛 wrote: > Hi, > > I follow the doc to test the login system. I set a view function with > @login_required to show successful login message. >

Re: Postawienie łącznika międy bazą danych a resztą świata (aplikacje mobilne)

2014-11-18 Thread Sergiy Khohlov
Hello Robert, I would like to say django has all functionality for web development and C# is not needed. At first try to pass first 6 tutors. After this you can do start. Last one, speaking language in this maillist is English not Polish Many thanks, Serge +380 636150445 skype: skhohlov

Re: Django CMS

2014-11-10 Thread Sergiy Khohlov
ny case > Niall > > On Monday, 10 November 2014 17:35:39 UTC+10, Sergiy Khohlov wrote: >> >> send also log from console >> >> Many thanks, >> >> Serge >> >> >> +380 636150445 >> skype: skhohlov >> >> On Sun, Nov 9, 2014

Re: Django CMS

2014-11-09 Thread Sergiy Khohlov
send also log from console Many thanks, Serge +380 636150445 skype: skhohlov On Sun, Nov 9, 2014 at 6:06 PM, Niall wrote: > Hi guys, > > I was hoping that someone could help me out with the following. I m > currently trying to access Djang CMS for the first time. I

Re: Weird form validation question

2014-10-09 Thread Sergiy Khohlov
could you please paste code in form valid block ? Many thanks, Serge +380 636150445 skype: skhohlov On Thu, Oct 9, 2014 at 11:23 AM, termopro <termo...@gmail.com> wrote: > I am using form.is_valid() > > On Thursday, October 9, 2014 10:54:56 AM UTC+3, Sergiy Khohlov wrote

Re: Weird form validation question

2014-10-09 Thread Sergiy Khohlov
Are you using form_valid method in view ? Many thanks, Serge +380 636150445 skype: skhohlov On Thu, Oct 9, 2014 at 10:10 AM, termopro wrote: > Hi, > > I am building a user registration page. Page has a form where user can > select his current state and city. > > The

Re: issues with get_initial() in CreateView?

2014-10-09 Thread Sergiy Khohlov
Could you please paste your form_valid method ? You should update it for right saving object Many thanks, Serge +380 636150445 skype: skhohlov On Thu, Oct 9, 2014 at 7:40 AM, Lachlan Musicman wrote: > Ok, I think it's because the modela is not passed in the POST data.

Re: поиск

2014-10-07 Thread Sergiy Khohlov
Check this one. http://stackoverflow.com/questions/23304821/django-ajax-populate-form-with-model-data also could you please use English in this list ? Many thanks, Serge +380 636150445 skype: skhohlov 2014-10-07 17:58 GMT+03:00 RSS : > направьте, пожалуйста > есть

Re: Simple task. Get request.META values listed on a page via template

2014-09-18 Thread Sergiy Khohlov
simple ways is using form and passing values to the template from the form. https://docs.djangoproject.com/en/dev/topics/forms/ Many thanks, Serge +380 636150445 skype: skhohlov On Mon, Sep 8, 2014 at 7:08 PM, Артём Мутерко wrote: > I need to list all values from

Re: Problems with time field in mysql

2014-08-19 Thread Sergiy Khohlov
which one error ? Look like error is related to __str__ function but I'm not sure (I'm using python 2.7 ) Many thanks, Serge +380 636150445 skype: skhohlov On Tue, Aug 19, 2014 at 6:09 PM, Andreas Kuhne wrote: > Hi all, > > I am having a problem with a time

Re: Looking for an email-based tutor

2014-08-19 Thread Sergiy Khohlov
Hello Study, It will be nice to have a list of the question. Could you please to tell about goal of the your learning ? Many thanks, Serge +380 636150445 skype: skhohlov On Tue, Aug 19, 2014 at 9:39 AM, wrote: > Hi Python/Django developers, > > I've been

Re: Problems with "Hello World" Debian Wheezy Django 1.6.5

2014-08-19 Thread Sergiy Khohlov
also try python manage.py runserver 127.0.0.1:8000 Many thanks, Serge +380 636150445 skype: skhohlov On Tue, Aug 19, 2014 at 8:46 AM, Aaron C. de Bruyn wrote: > After trying to load the page in Chrome, do you see any output in the > 'runserver' window? > > > On Mon,

Re: Efficient way to perform many queries

2014-08-15 Thread Sergiy Khohlov
good question ! 1) I like to use some optimization at view side not template 2) if i need something like your code I using optimization. Something like that : {% with items = mymodels.items.all %} {% for item in items %} {{ item.name }} {% for tag in item.tags.all %} {{ tag

Re: Problem in the Tutorial 01

2014-07-24 Thread Sergiy Khohlov
On Thu, Jul 24, 2014 at 3:53 PM, Fabian Zentner < zentner.fab...@googlemail.com> wrote: > *Poll.objects.get(pub_date__year=current_year) * try to use *Poll.objects.first()* you have 2 object and it is a reason of your traceback Many thanks, Serge +380 636150445 skype: skhohlov -- You

Re: urls prob

2014-07-18 Thread Sergiy Khohlov
ang...@gmail.com> wrote: > It is still breaking > > > On Friday, July 18, 2014 1:56:38 PM UTC+1, Sergiy Khohlov wrote: > >> try to use >> url(r'^/event/$', EventDetailView.as_view(), name='Event-detail') >> >> >> and ofcourse turn off color >> >

  1   2   3   >