[web2py] foreign key constraint failed

2014-03-04 Thread Капылов Данил
Pass lessons web2py - DePaul IPD359 Week 2 - Web development with Python and web2py Time on video 2 hours 05 minutes There is an error in the code foreign key constraint failed function: def create_post(): category = get_category_post() db.post.category.default = category.id form

[web2py] How to conclude posts on one page sorted by creation date in separate blocks.

2014-07-03 Thread Капылов Данил
hello How to conclude posts on one page sorted by creation date in separate blocks. Example: unit - Today, the unit - This week, block - Long -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p

[web2py] How to choose a subcategory to create a post

2014-07-03 Thread Капылов Данил
1) Post created in a particular category. - http://hostname/app/default/created_ad/ 2)The category tied subcategories. How to make that SQLFORM display only radio button of equal sub categories. Not show subcategories not belong to this category.

[web2py] How to make so that the user can enter (add) a single address.

2014-07-07 Thread Капылов Данил
How to make so that the user can enter (add) a single address. And configure the "create an address" if more than one address to redirect to main page -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.googl

[web2py] How to remove the symbol. What is the cause of its appearance?

2014-07-26 Thread Капылов Данил
When displaying text in some text at the end appears. and some do not. In this text there is no character. How to fix it was not? {{if len(row.body)>400:}} {{=(row.body[:401] + '. . .')}} {{else:}} {{=row.b

[web2py] Re: How to remove the symbol. What is the cause of its appearance?

2014-07-31 Thread Капылов Данил
appropriate > place. > > > On Thursday, July 24, 2014 11:48:34 PM UTC-7, Капылов Данил wrote: >> >> When displaying text in some text at the end appears. and some do not. In >> this text there is no character. How to fix it was not? >

[web2py] How to make so that the "client" database "address" took 'Id' database "client".

2014-08-05 Thread Капылов Данил
*How to make so that the "client" database "address" took 'Id' database "client". And attached to her **This example is taken from the chapter of a book *One form for multiple tables db.define_tab

[web2py] Re: autocomplete widget a disaster on Internet Explorer

2014-08-07 Thread Капылов Данил
Found a way out of this problem --style.css-- #_autocomplete_region_name_div{ position: relative !important; } вторник, 14 июня 2011 г., 2:46:30 UTC+6 пользователь Massimo Di Pierro написал: > > Do you know why it does not work? > > On Jun 13, 10:28 am, Anthony wrote: > > I can confirm

[web2py] RSS is an error! What to do?

2014-09-08 Thread Капылов Данил
'NoneType' object has no attribute 'encode' *Version * web2py™Version 2.9.8-stable+timestamp.2014.09.07.04.13.28PythonPython 2.7.5+: /usr/local/bin/uwsgi (prefix: /usr)Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. Traceback (most recent call last): File "/home/Danilka88/web2py/gluon/restricted.py",

[web2py] Re: RSS is an error! What to do?

2014-09-08 Thread Капылов Данил
a6-ba1e-ed35b5c5908d#> ('NoneType' object has no attribute 'encode') понедельник, 8 сентября 2014 г., 23:17:02 UTC+6 пользователь Massimo Di Pierro написал: > > Looks very wrong > > link=str(feed.get('link', None).encode('utf-8',

[web2py] Re: RSS is an error! What to do?

2014-09-09 Thread Капылов Данил
title=str(entry.get('title', '(notitle)').encode('utf-8', 'replace')), Variablesbuiltinstrfeed{'message': }link undefinedfeed.get).encodeundefined вторник, 9 сентября 2014 г., 10:32:12 UTC+6 пользователь Ma

[web2py] Re: RSS is an error! What to do?

2014-09-12 Thread Капылов Данил
try in feed.get('entries', [])]) > return rss.to_xml(encoding='utf-8') > > please let me know if this fixes it. If not, please send me more details > about the feed you are trying to read. > > > On Tuesday, 9 September 2014 00:45:25 UTC-5, Кап

[web2py] Problems with send mail.

2014-09-14 Thread Капылов Данил
Problems with send mail. Ad created Letters do not have Hosting PythonAnywhere ## configure email mail = auth.settings.mailer mail.settings.server = 'logging' or 'smtp.gmail.com:587' mail.settings.sender = 'kapy...@gmail.com' mail.settings.login = 'kapy...@gmail.com:secretcode' def created_ad():

[web2py] How do I configure my domain to hosting PythonAnywhere

2014-09-14 Thread Капылов Данил
How do I configure my domain to hosting PythonAnywhere Give detailed step by step instructions in please -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) ---

[web2py] How can we organize the automatic posting to social networks Twitter and faсebook, vkontakt, google+

2014-09-17 Thread Капылов Данил
How can we organize the automatic posting to social networks Twitter and faсebook, vkontakt, google+ Prompt as materials and lessons how to work with veb2py and social networks. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source