This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "pk": 1, | |
| "model": "survey.survey", | |
| "fields": { | |
| "user": 2, | |
| "code": "survey-code-1", | |
| "created_at": "2013-06-12 11:08:45", | |
| "restricted": true, | |
| "is_public": true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >>> Tweet.objects.fetch_from_twitter() | |
| Traceback (most recent call last): | |
| File "<console>", line 1, in <module> | |
| File "/home/borsala/borsala/apps/social/models.py", line 73, in fetch_from_twitter | |
| entities_string=json.dumps(tweet.entities)) | |
| File "/home/borsala/venv/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
| return self.get_query_set().create(**kwargs) | |
| File "/home/borsala/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 377, in create | |
| obj.save(force_insert=True, using=self.db) | |
| File "/home/borsala/venv/local/lib/python2.7/site-packages/django/db/models/base.py", line 463, in save |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >>> Tweet.objects.fetch_from_twitter() | |
| Traceback (most recent call last): | |
| File "<console>", line 1, in <module> | |
| File "/home/borsala/borsala/apps/social/models.py", line 73, in fetch_from_twitter | |
| entities=tweet.entities) | |
| File "/home/borsala/venv/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
| return self.get_query_set().create(**kwargs) | |
| File "/home/borsala/venv/local/lib/python2.7/site-packages/django/db/models/query.py", line 377, in create | |
| obj.save(force_insert=True, using=self.db) | |
| File "/home/borsala/venv/local/lib/python2.7/site-packages/django/db/models/base.py", line 463, in save |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (gajim)src|⇒ python gajim.py | |
| File "gajim.py", line 202 | |
| print(_('Gajim needs X server to run. Quiting...'), file=sys.stderr) | |
| ^ | |
| SyntaxError: invalid syntax |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (qhonuskan-votes)demo|tests⚡ ⇒ python manage.py harvest | |
| Django's builtin server is running at 0.0.0.0:8000 | |
| Feature: Rocking with qhonuskan_votes # qhonuskan_votes/features/index.feature:1 | |
| Scenario: Voting as AnonymousUser # qhonuskan_votes/features/index.feature:3 | |
| Given I access the url "/" # qhonuskan_votes/features/index.py:11 | |
| f> /home/gokmen/Documents/github/gkmngrgn/qhonuskan-votes/demo/qhonuskan_votes/features/index.py(13)access_url() | |
| 12 import ipdb; ipdb.set_trace() | |
| ---> 13 response = world.browser.get(url) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > /home/gokmen/Documents/github/gkmngrgn/qhonuskan-votes/demo/app/models.py(4)<module>() | |
| 3 import ipdb; ipdb.set_trace() | |
| ----> 4 from qhonuskan_votes.models import VotesField, ObjectsWithScoresManager | |
| 5 from qhonuskan_votes.models import vote_changed | |
| ipdb> from qhonuskan_votes.models import VotesField | |
| *** ImportError: cannot import name VotesField | |
| ipdb> import qhonuskan_votes | |
| ipdb> # ala ala |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Sphinx version: 1.1.3 | |
| # Python version: 2.7.3 | |
| # Docutils version: 0.8.1 release | |
| # Jinja2 version: 2.6 | |
| Traceback (most recent call last): | |
| File "/home/vagrant/.virtualenvs/boardroom/local/lib/python2.7/site-packages/sphinx/cmdline.py", line 189, in main | |
| app.build(force_all, filenames) | |
| File "/home/vagrant/.virtualenvs/boardroom/local/lib/python2.7/site-packages/sphinx/application.py", line 204, in build | |
| self.builder.build_update() | |
| File "/home/vagrant/.virtualenvs/boardroom/local/lib/python2.7/site-packages/sphinx/builders/__init__.py", line 196, in build_update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ipdb> rendered_value | |
| u'<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre>1\n2\n3\n4\n5\n6\n7</pre></div></td><td class="code"><div class="highlight"><pre><span class="nv">views = </span><span class="nx">require</span><span class="p">(</span><span class="s">'juju'</span><span class="p">).</span><span class="nx">views</span><br /><br /><span class="k">class</span> <span class="nx">exports</span><span class="p">.</span><span class="nx">Index</span> <span class="k">extends</span> <span class="nx">views</span><span class="p">.</span><span class="nx">TemplateView</span><br /> <span class="nv">constructor: </span><span class="nf">-></span><br /> <span class="k">super</span><br /><br /> <span class="vi">@template_name = </span><span class="s">'index'</span><br /></pre></div>\n</td></tr></table><p>bla bla bla</p>\n<pre class="literal-block">\nviews = require(\'juju\').views\n\nclass exports.Index extends views.TemplateView\n constructor: ->\n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @register.filter(is_safe=True) | |
| def restructuredtext(value): | |
| """ | |
| Copied and modified from django 1.5 version. Because | |
| `django.contrib.markup` will be deprecated. | |
| """ | |
| parts = publish_parts( | |
| source=smart_str(value), writer_name='html', | |
| settings_overrides=radpress_settings.RST_SETTINGS) | |
| rendered_value = mark_safe(force_unicode(parts['fragment'])) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| postgresql::db{ 'vagrant': | |
| user => 'vagrant', | |
| password => 'vagrant', | |
| grant => 'all', | |
| charset => 'utf8', | |
| } |