Re: Hi..how to create seperate label next to sign up button in login page and direct user to new page using django?

2013-06-25 Thread Sergiy Khohlov
add url to your code (at login page) and and this url to url.py Dont forget to pass tutorials Many thanks, Serge +380 636150445 skype: skhohlov On Tue, Jun 25, 2013 at 4:19 PM, Viji Venkatesan wrote: > > -- > You received this message because you are subscribed to the Google Groups

Re: standalone script to call a view

2013-06-28 Thread Sergiy Khohlov
View is used for serving web requests not for serving bash script . Ok you have called a view and receive a http page. Ia it expected result? I think more easy way is create a function which is be called by view and your script. Many thanks, Serge +380 636150445 skype: skhohlov On Fri,

Re: standalone script to call a view

2013-06-28 Thread Sergiy Khohlov
for this case you can use django shell Many thanks, Serge +380 636150445 skype: skhohlov On Fri, Jun 28, 2013 at 4:47 PM, Javier Guerra Giraldez wrote: > On Fri, Jun 28, 2013 at 8:21 AM, Larry Martell > wrote: > > I don't really understand what you mean by "create a function which is

Re: Return 2 values

2013-07-05 Thread Sergiy Khohlov
try to use dict with 2 items Many thanks, Serge +380 636150445 skype: skhohlov On Fri, Jul 5, 2013 at 12:38 PM, Hélio Miranda wrote: > Hi > My doubt is that I am not getting an image and its caption. > I'll explain, I have my application to enter the picture and the caption > GridFS on mo

Re: Rendering 3D model in a Django app

2013-07-06 Thread Sergiy Khohlov
Check this one http://theresa.multimediatechnology.at/webgl-demonstrator-rendering-vtk-in-native-3d/ you need to use webgl for client side. your question is not related to django directly. Many thanks, Serge +380 636150445 skype: skhohlov On Sat, Jul 6, 2013 at 2:44 PM, Rohit kumar wrote:

Re: Rendering 3D models which change based on the interaction from Users. in Django

2013-07-06 Thread Sergiy Khohlov
pass few webGL lesson and adopt django templeta to it. Unfortunately I have not made this yet Many thanks, Serge +380 636150445 skype: skhohlov On Sat, Jul 6, 2013 at 1:30 PM, Rohit kumar wrote: > I am using Django and want to create a page which should render a > interactive 3D model for t

Re: how can an abstract class know which class inherits it

2013-07-12 Thread Sergiy Khohlov
Look like it is task for OOP list ;-) But I hope next can help you class ParentClass(object): def __init__(self, name): print "Constructor parent" print "Called from ", name class ChildClass(ParentClass): def __init__(self): super(ChildClass,self).__init__("Child")

Re: Submit a form but stay on the page and the form changes

2013-07-12 Thread Sergiy Khohlov
Hello Cody, I would like to help. 1 ) could you please check if POST is going from your browser to django (I hope yes) 2) First candidate for investigation is function post in class PollFormMixin I 'm proposing verify this by adding print "form status", form.is_valid() after string for

Re: Unable to open database.

2013-07-25 Thread Sergiy Khohlov
linux does not need extension Many thanks, Serge +380 636150445 skype: skhohlov On Thu, Jul 25, 2013 at 1:43 PM, Nigel Legg wrote: > So should I put > home/stats_portal/stats_/portal/myproject/myproject/database/sqlite3 ? > (settings.py in second myproject folder) > The database file name is

Re: Table in models.py not being created during syncdb

2013-10-10 Thread Sergiy Khohlov
Have you added schedule to installed application list ? Many thanks, Serge +380 636150445 skype: skhohlov On Wed, Oct 9, 2013 at 4:11 PM, Edward Lazarenko wrote: > Can you tell what did you exactly do, to make it work? > > On Wednesday, March 31, 2010 10:16:11 PM UTC+5, wchildsuk wrote: >> >

Re: Auth backends don't work with HttpResponseRedirect and Django 1.4+?

2013-10-14 Thread Sergiy Khohlov
I have no idea why are you writing this code by yourself ? This is already done ! Take a look at https://github.com/django/django/blob/master/django/contrib/auth/views.py login function is already done and you can use it . Have no sense to write it by yourself. Many thanks, Serge +380

Re: Auth backends don't work with HttpResponseRedirect and Django 1.4+?

2013-10-14 Thread Sergiy Khohlov
pass you are verifying fields only. No more. And invalid creadentials ( correct for form) are never go to else block Many thanks, Serge +380 636150445 skype: skhohlov On Mon, Oct 14, 2013 at 4:01 PM, Sergiy Khohlov wrote: > I have no idea why are you writing this code by yourself

Re: Auth backends don't work with HttpResponseRedirect and Django 1.4+?

2013-10-14 Thread Sergiy Khohlov
or my problem. I use > django's own login() to login the user. > > > On 14 October 2013 15:07, Sergiy Khohlov wrote: >> >> Take a look at : >> if form.is_valid(): >> #django.contrib.auth.login >> Login(request, form.get_user()) >&

Re: User Created Objects (models)

2013-10-20 Thread Sergiy Khohlov
Task is really simple : Take a look at https://docs.djangoproject.com/en/dev/topics/auth/default/ (this a good start for novice) Use UserCreationForm for passing data from user and validating If form is correct save new user After this you can redirect to new page Many thanks, Serge +380 63

Re: Trouble with (unwanted) field validation

2013-11-08 Thread Sergiy Khohlov
answer is simple . Validator would like to check field which is used for Key. Look like this field is not set before validation. I would like take a look at model form and part of code before form.is_valid Many thanks, Serge +380 636150445 skype: skhohlov On Fri, Nov 8, 2013 at 2:29 PM

Re: presetting a field value with ModelForm

2013-11-12 Thread Sergiy Khohlov
It is easy to do. You should update object before executing save()... Many thanks, Serge +380 636150445 skype: skhohlov On Tue, Nov 12, 2013 at 5:02 PM, Timothy W. Cook wrote: > Thanks for posting this. I was just about to post a question with the > same exact scenario. > > Maybe we are miss

Re: presetting a field value with ModelForm

2013-11-12 Thread Sergiy Khohlov
I'm using class based view and have a simple example below. Not ideal but good for start: form.py class CreateGoodsForm(ModelForm): class Meta: model = Goods exclude = ('category',) view.py class GoodsCatalogCreateView( CreateView): """ View for creating new category it

Re: Tango with Django tutorial, problem getting category function to pass a variable

2013-11-13 Thread Sergiy Khohlov
check your template. or html Many thanks, Serge +380 636150445 skype: skhohlov On Wed, Nov 13, 2013 at 2:18 PM, Amimo Benja wrote: > Hi Jimmy am currently facing an error that "The current URL, > rango/category//add_page/, didn't match any of these." How did you resolve > it? > > > On Sunday,

Re: Tango with Django Chapter 7 (Add_page)

2013-11-13 Thread Sergiy Khohlov
try to change Add a Page to Add a Page Many thanks, Serge +380 636150445 skype: skhohlov On Wed, Nov 13, 2013 at 2:14 PM, Amimo Benja wrote: > Hey all, > > Am currently practicing using this tutorial > http://www.tangowithdjango.com/book/chapters/forms.html, but I'm constantly > getting this

Re: Admin custom template

2013-11-19 Thread Sergiy Khohlov
also take a look at https://docs.djangoproject.com/en/dev/ref/contrib/gis/forms-api/ Anyway I would like to write those code by myseld and do not use default admin interface Many thanks, Serge +380 636150445 skype: skhohlov On Tue, Nov 19, 2013 at 5:48 PM, Rafael E. Ferrero wrote: > i mean...

Re: Email Accounts

2011-06-10 Thread Sergiy Khohlov
Could you please clarify your question ? Are planning to use exiting email account in Django app or you planning to create email account via django app ? thanks, Serge 2011/6/10 lillian : > Thanks for the recommendation. > > Any IT guys out there? > > Also, is it difficult to set up email accou

Re: Email Accounts

2011-06-10 Thread Sergiy Khohlov
Not is is related to django. A lot of email system stores email account (not mailbox) in the database. It is not hard task to create a django class using database which is used for SMTP system. Take a look at the next URL: http://bowe.id.au/michael/isp/postfix-server.htm part of mysql : C

Re: help plz to install Django

2011-06-11 Thread Sergiy Khohlov
sudo apt-get search django sudo apt-get install 2011/6/11 ihsan mokhlisse : > hi all . i'm so exited to be a member in this wonderful group . i > wanna start learn Django but the problem is . that i need who can > guide me to accomplish the task (learning Django) . > so plz  i need help . how c

Re: help plz to install Django

2011-06-11 Thread Sergiy Khohlov
; > El 11-06-2011 21:42, "Kenneth Gonsalves" escribió: > > On Sat, 2011-06-11 at 15:57 +0300, Sergiy Khohlov wrote: >> sudo apt-get search django >> sudo apt-get... > > not good advice - *never* use the packaged version > -- > regards > KG >

Re: VirtualServer definition

2011-07-13 Thread Sergiy Khohlov
Could you please provide some detail about your target ? If you are novice then django is started at 127.0.0.1:8080 What do you what to do ? Thsnks, Serge 2011/7/13 kyosa : > Hi, > I'm new to Ubuntu, Python and Django. To learn Python and Django I > following a case in Pro Python System Adminis

Re: Cannot configure apache to run my django site

2011-03-15 Thread Sergiy Khohlov
Upgrade module to the version 2.6.6 2011/3/15 Tomas Neme : > I usually don't send formatted email, but needed to clarify what's code and > what's not > > I'm trying to get apache to run my django site at django.tomasneme.com.ar > and the requests are timing out. There's nothing in apache's or th

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 OAuth2 Web Application > Flo

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 please share it here. > > --

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 should have option other on

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 > wrote: > > my view > > > > >

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 apps in 1 project, or >

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 startproject mysite" > > it opens a

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: 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/ to

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 rajpuro

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, Net

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 - 20:42:02 > Django versi

Re: urls prob

2014-07-18 Thread Sergiy Khohlov
try to use url(r'^/event/$', EventDetailView.as_view(), name='Event-detail') and ofcourse turn off color Many thanks, Serge +380 636150445 skype: skhohlov On Fri, Jul 18, 2014 at 3:43 PM, ngangsia akumbo wrote: > it gives me this error > Page not found (404)Request Method:GETRequest URL:

Re: urls prob

2014-07-18 Thread Sergiy Khohlov
+380 636150445 skype: skhohlov On Fri, Jul 18, 2014 at 4:54 PM, ngangsia akumbo 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-

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 rece

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: Problems with "Hello World" Debian Wheezy Django 1.6.5

2014-08-18 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, Aug 18, 2014 at 7:28 P

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 learning python/django for some

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 field in my mysql database. I

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 request.META in Django using

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 : > направьте, пожалуйста > есть форма: > 1. первый выпадающ

Re: issues with get_initial() in CreateView?

2014-10-08 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. Is > there any way to

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 problem with that is that

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 wrote: > I am using form.is_valid() > > On Thursday, October 9, 2014 10:54:56 AM UTC+3, Sergiy Khohlov wrote: >> >> Are you us

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 have been > following the

Re: Django CMS

2014-11-10 Thread Sergiy Khohlov
> 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 at 6:06 PM, Niall wrote: &

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: 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. > > In the html, a link

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 hierarchical system of >

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 wrote

Re: Class Based Views tutorials

2015-01-06 Thread Sergiy Khohlov
aving 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 for creating new object. >

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: django add catalog category typeerror

2013-12-05 Thread Sergiy Khohlov
Send a view.py and urls.py Many thanks, Serge +380 636150445 skype: skhohlov On Thu, Dec 5, 2013 at 8:21 AM, Lasha Gogua wrote: > help me please... > > TypeError at /admin/myshop/catalogcategory/add/ > > 'NoneType' object has no attribute '__getitem__' > > Request Method:POSTRequest URL:

Re: Which Real Time Communications Protocol

2013-12-20 Thread Sergiy Khohlov
telnet and xmlrpc is a good choice. I'm working on the similar project Many thanks, Serge +380 636150445 skype: skhohlov On Fri, Dec 20, 2013 at 6:58 PM, Mario Osorio wrote: > My app will have to communicate different customers (Linux devices, Windoze > devices, iOS devices and Android devic

Re: How to send a activation email when creating accounts in site?

2014-01-04 Thread Sergiy Khohlov
looks like signal is not sent. i will check this on Monday Many thanks, Serge +380 636150445 skype: skhohlov On Sat, Jan 4, 2014 at 10:47 AM, 项楠 wrote: > I use django 1.6.1 and python 3.3.3 in windows8. I want to build a app named > 'customauth' that supports email activation. I choose to cre

Re: mass email app for django

2014-01-15 Thread Sergiy Khohlov
Hello Sven, Look like it is not task for django. This is task for SMTP server. Of course you can create a task for SMTP server using django but main force of the your application is based on mail server. I'm proposing next solution: 1) Store usermail in database 2) configure smtp server for

Re: mass email app for django

2014-01-17 Thread Sergiy Khohlov
n't aware that djnago can use the > postmark / rest api for mails out of the box. I need to investigate on that - > exiting. > > Cheers, > Sven > > On Wednesday 15 January 2014 13:34:11 Sergiy Khohlov wrote: >> Hello Sven, >> >> Look like it is not tas

Re: Commercial Django e-commerce products

2014-01-28 Thread Sergiy Khohlov
Is this one good for you ? https://www.django-cms.org/en/e-commerce/ Many thanks, Serge +380 636150445 skype: skhohlov On Tue, Jan 28, 2014 at 3:39 PM, Alex Strickland wrote: > Hi > > Can anyone suggest any commercial Django e-commerce products? > > -- > Regards > Alex > > -- > You received t

Re: How to change language by clicking on link (using GET not POST) (set_language redirect)

2014-02-05 Thread Sergiy Khohlov
On Wed, Feb 5, 2014 at 11:54 AM, David Seddon wrote: >> a href="/i18n/setlang?lang=fr&name=next Take a look at your URL : lang=fr is present and you can use this information for updating LANGUAGE_CODE variable Many thanks, Serge +380 636150445 skype: skhohlov -- You received this messag

Re: CSRF problem (403 FORBIDDEN)

2014-03-17 Thread Sergiy Khohlov
I'm proposing to update your views and templates for supporting csrf Many thanks, Serge +380 636150445 skype: skhohlov On Mon, Mar 17, 2014 at 5:05 PM, Gkpetrak wrote: > Hello, > > I'm developing an app using django and Openlayers javascript code. When I'm > trying to post something via o

Re: How to remove Group field from Email Form

2014-04-18 Thread Sergiy Khohlov
add exlude= ['Group'] to the form.py Many thanks, Serge +380 636150445 skype: skhohlov On Fri, Apr 18, 2014 at 4:21 PM, nobody wrote: > Hi, > > In an email form template file, the following tag displays tree input > fields, Subject, Body and Group, but I only need Subject and Body field, not

Re: regex error?

2014-05-07 Thread Sergiy Khohlov
try this one url(r'/(?P\d+)$', DetailView.as_view( model = Customer, template_name="customer.html")), Many thanks, Serge +380 636150445 skype: skhohlov -- You received this message because you are subscribed to the Google Groups "Django users

Re: How to remove Group field from Email Form

2014-06-04 Thread Sergiy Khohlov
Could you please send your view.py form.py and template ... Many thanks, Serge +380 636150445 skype: skhohlov On Sat, Apr 19, 2014 at 3:39 AM, nobody wrote: > Thanks Serge, please see following embedded comments. > > > On Friday, April 18, 2014 11:27:01 PM UTC+10, Sergiy K

Re: URLs: mymodel_id vs object_id vs pk ....

2014-06-04 Thread Sergiy Khohlov
Jnt of the best way is a slug. I nether do use id or object_id by security reason (hacker can try to access another object or count on objects in your application, such as administrator usually has id as 0 or small number. It is good target for attack). Keep in mind that id is mutable after movi

Re: Django Admin Login - Redirecting back to login page

2014-06-24 Thread Sergiy Khohlov
Hello, Could you please paste your LOGIN_URL from your settings.py Many thanks, Serge +380 636150445 skype: skhohlov On Tue, Jun 24, 2014 at 5:40 PM, Діма Ревуцький wrote: > I had same problem > In settings remove SESSION_COOKIE_DOMAIN or set correct domain > > понедельник, 6 июня 2011

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) two row, Departamento and >

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='Коефицент') > > > #view.py > item['coef'] == 0.0

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

2016-06-09 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" пише: > how to forbidden mouse

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
r ctr + r > multiple time during page loading > > On Friday, June 10, 2016 at 2:28:09 PM UTC+8, Sergiy Khohlov wrote: >> >> 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 &g

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 hijacked over year ol

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: 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 Writter(models.Model): > """ > Model

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 micro controllar > > > On Th

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 usi

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 i can use if i call > i in

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. In the video whats inside of h

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: 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 deploy the web app onto my VP

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 urls > > app url > > app_name = 'profs'

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 серп. 201

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 unsubscribe from this group and stop

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 bug > heaven! > > -- >

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 look at the code for the

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: Attribute error, with a very basic banking app

2016-08-26 Thread Sergiy Khohlov
x27;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, Sergiy Khohlov >

Re: Attribute error, with a very basic banking app

2016-08-26 Thread Sergiy Khohlov
gt; >> On Fri, Aug 26, 2016 at 10:13 AM, Neil Hunt 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 your help, >>> >

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 Django 1.9 > mysql Serv

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

Re: iregex doesn't work properly

2016-08-28 Thread Sergiy Khohlov
>> >>> >>> mysql> show variables like 'character_set%'; >>> +--++ >>> | Variable_name| Value | >>> +------++ >>> | character_set_cl

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 this message becaus

Re: iregex doesn't work properly

2016-08-30 Thread Sergiy Khohlov
gt; > 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: iregex doesn't work properly

2016-08-30 Thread Sergiy Khohlov
s where > id =241; > +-+--+---+ > | id | step | step_description | > +-+--+---+ > | 241 |1 | заказ роутера | > +-+--+---+ > 1 row in set (0,00 sec)

Re: iregex doesn't work properly

2016-08-30 Thread Sergiy Khohlov
> Empty set (0,00 sec) > > > while: > mysql> SELECT id FROM `clients_order_process` WHERE > `clients_order_process`.`step_description` REGEXP '^заказ роутер*а*$'; > +-+ > | id | > +-+ > | 241 | > +-+ > 1 row in set (0,00 sec) > &

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 th

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 message because you are subscr

<    1   2   3   >