check this one :
https://docs.djangoproject.com/en/dev/topics/http/urls/
looks like
url(r'^test/upload/\(d{8})/$', 'mymodule.views.pass_id'),
and function
mymodule.views.pass_id (request, passed_id)
Many thanks,
Serge
+380 636150445
skype: skhohlov
On Mon, May 13, 2013 at 10:01 PM, Hélio
On Tue, May 14, 2013 at 1:38 PM, Muhammad Ali wrote:
> Russell,
>
> Thank you very much for the insight.
>
> This was very helpful. :)
>
> As for the "Django-specific format" that you mentioned, what are you
> referring to here?
>
If you've got a tutorial project, try running:
./manage.py dumpd
Russell,
Thank you very much for the insight.
This was very helpful. :)
As for the "Django-specific format" that you mentioned, what are you referring
to here?
Thanks for your time.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To uns
On Tue, May 14, 2013 at 10:27 AM, Muhammad Ali wrote:
> Hi All,
>
> I am currently learning Django and getting comfortable with it (having
> somewhat covered the official tutorial. :) )
>
> I want to develop a Django-based app using open datasets that I downloaded
> from the web. But I hit a wall
On Tue, May 14, 2013 at 1:53 AM, Joseph Osako wrote:
> I am currently working on a site where there are several models which do
> not have immediate views, but rather are attached to other models via
> foreign keys. I need to prepare a view in which the data of these models
> (or rather, their un
Hi All,
I am currently learning Django and getting comfortable with it (having somewhat
covered the official tutorial. :) )
I want to develop a Django-based app using open datasets that I downloaded from
the web. But I hit a wall when I realized that I don't know how to handle
processing the
I had a similar issue with Bus error: 10
Turned out to be an infinite depth recursion loop like James says. My
recommendation for anyone who encounters this it to create a unit test for
the specific situation that causes it or play around with it using
"./manage.py shell". You may be able to
Hi guys
As per above-mentioned subject, how do i go about?
Thanks in advance.
--
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...@googlegro
Hi guys
As per above-mentioned subject, how do i go about?
Thanks in advance.
--
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...@googlegro
Use a combination of the redirect() shortcut and request.user.
https://docs.djangoproject.com/en/1.5/topics/http/shortcuts/#redirect
--
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 i
Hi guys
As per above-mentioned subject, how do i go about?
Thanks in advance.
--
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...@google
You can use: request.COOKIES["id"]
El lunes, 13 de mayo de 2013 07:19:27 UTC-5, Hélio Miranda escribió:
>
> Hi
>
> I need to get a cookie value, how can I do?
>
> I do just so: id = Request.Cookies (date)
>
> Someone can help me?
>
--
You received this message because you are subscribed to the G
Hi,
I have requirement where users should be able to 'delete' the data
from database.
But at the same time we want to provide undo features. So what that
essentially means is keeping column 'is_deleted' for every table and
when uses delete the data set value to 1.
And when users want to retrive
Hi
I have a client-server application, where to upload ... I forward to a page
where django have a multipart form upload where the url is this:
http://localhost:8080/test/upload/12578496
How do I get the id (12578496) to upload to this record?
--
You received this message because you are subsc
I am currently working on a site where there are several models which do
not have immediate views, but rather are attached to other models via
foreign keys. I need to prepare a view in which the data of these models
(or rather, their underlying tables) are summed and presented in several
column
On Mon, May 13, 2013 at 5:08 PM, Bill Freeman wrote:
> Don't you need to reference it by the function name:
> "show_popular_keywords"?
>
Or provide a name when registering the tag:
@register.inclusion_tag('keywords/popular_keywords.html',
name='popular_keywords')
def show_popular_keywords():
…
You're welcome. Enjoy the book!
On Sun, May 12, 2013 at 9:54 PM, Philippe Schraepen <
schraepen.phili...@gmail.com> wrote:
> Thanks for the clarification!
> I'll definitely read the book!
>
> On Saturday, May 11, 2013 12:28:50 AM UTC, Lloyd Dube wrote:
>
>> Hi Phillipe,
>>
>> I think that it rea
Don't you need to reference it by the function name:
"show_popular_keywords"?
On Sat, May 11, 2013 at 2:26 AM, wrote:
> I am attempting to create a fairly straightforward inclusion tag out of
> nothing more than a hardcoded dictionary of keywords. My app is set up like
> this:
>
> *apps*
> * k
On Mon, May 13, 2013 at 4:32 PM, Hélio Miranda wrote:
> Yes, when I send print
> id = Request.Cookies
> print id
>
> He only prints the csrftoken
… and?
What cookies are you expecting to be there?
Why are you expecting them to be there?
An actual question would be nice..
--
You received this
Yes, when I send print
id = Request.Cookies
print id
He only prints the csrftoken
--
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...@googl
On Sat, May 11, 2013 at 1:04 AM, wrote:
> Hi,
>
> I'm pretty new to Django and am having a problem with a race conditions
> while modifying my session data. I'm using the standard session backend in
> Django 1.4.1,, backed by Mysql.
>
> I have view A, which can take a long time to process, and vi
On Fri, May 10, 2013 at 8:22 PM, Valder Gallo wrote:
> Nops ... when i used
>
> INSTALLED_APP = {
> 'invoice.sony',
> 'invoice.samsung',
> 'storage.sony',
> 'storage.samsung',
> }
>
> storage.samsung.models is overrind invoice.samsung.models
>
> :(
>
Does it help if they have distinct ap
On Mon, May 13, 2013 at 3:53 PM, Hélio Miranda wrote:
> I'm trying this:
>
> id = request.COOKIES.get ('id')
> print id
>
> But he did not get is, none prints.
> What am I doing wrong?
Who can say? That simply says there was no cookie with name 'id'. Have
you set a cookie with name 'id'? Why not
On Mon, May 13, 2013 at 3:34 PM, Neil Chaudhuri wrote:
> Oh sorry I wasn't clear. The first time I typed the patterns function call
> out. So in other words, the %s was in there all along. I just misrepresented
> it in my question. Things are failing even with the correct call and have
> been a
I'm trying this:
*id = request.COOKIES.get ('id')*
*print id*
But he did not get is, none prints.
What am I doing wrong?
--
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
The specific URL part has been answered.
I'm presuming that you want something automatic for a third party app that
you don't want to modify.
In process_view you have access to the view function. You should be able
to introspect that to figure out whether it is supplied by the target app
or not.
Oh sorry I wasn't clear. The first time I typed the patterns function call out.
So in other words, the %s was in there all along. I just misrepresented it in
my question. Things are failing even with the correct call and have been all
along.
Could you provide more details about how I can double
On Mon, May 13, 2013 at 3:19 PM, Neil Chaudhuri wrote:
> Good catch. That was a typo. Let me cut and paste directly:
>
> urlpatterns = patterns("apps.popular_keywords.views",
>url("^%skeyword/(?P.*)%s$" % _slashes,
> "matching_items_list", name="matching_items")
> )
>
> Pe
On Fri, May 10, 2013 at 7:04 PM, Radomir Wojcik wrote:
> I was looking for the answer to this today and I wrote a tutorial on how to
> do this based on all the stuff I found on the net:
>
> With the economy class Linux hosting its a bit tricky. For starters you
> don't have root access to the site
Good catch. That was a typo. Let me cut and paste directly:
urlpatterns = patterns("apps.popular_keywords.views",
url("^%skeyword/(?P.*)%s$" % _slashes,
"matching_items_list", name="matching_items")
)
Perhaps I should try some of your coffee.
Thanks.
On May 13, 2013, at
On Sun, May 12, 2013 at 9:08 AM, wrote:
> I have an app within my project called popular_keywords.
>
> Within urls.py I have this:
>
> urlpatterns = patterns("apps.popular_keywords.views",
>url("^%keyword/(?P.*)%s$" % _slashes,
> "matching_items_list", name="matching_items
Here is slashes:
_slashes = (
"/" if settings.BLOG_SLUG else "",
"/" if settings.APPEND_SLASH else "",
)
Thanks.
On May 13, 2013, at 4:28 AM, Tom Evans wrote:
> On Sun, May 12, 2013 at 9:08 AM, wrote:
>> I have an app within my project called popular_keywords.
>>
>> Within urls.py
On 05/13/2013 03:03 PM, Fernando Rocha wrote:
I find weird pygame reference there, do you also have pygame
installed)?
I've just tested on a env without pygame and:
In [4]: In [6]: lgdal['GDALVersionInfo'](b'RELEASE_NAME')
zsh: segmentation fault (core dumped) python manage.py shell
Indeed I
> I find weird pygame reference there, do you also have pygame
> installed)?
>
I've just tested on a env without pygame and:
In [4]: In [6]: lgdal['GDALVersionInfo'](b'RELEASE_NAME')
zsh: segmentation fault (core dumped) python manage.py shell
--
You received this message because you are subscr
Same here (also running Arch Linux), by running functions on shell:
---
In [1]: from ctypes import CDLL
In [3]: lib_path = '/usr/lib/libgdal.so'
In [4]: lgdal = CDLL(lib_path)
In [5]: lgdal['GDALVersionInfo']
Out[5]: <_FuncPtr object at 0x52447a0>
In [6]: lgdal['GDALVersionInfo'](b'RELEASE_NAM
On 2013-05-13, at 14:19 , Hélio Miranda wrote:
> Hi
>
> I need to get a cookie value, how can I do?
>
> I do just so: id = Request.Cookies (date)
>
> Someone can help me?
Have you considered
https://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.COOKIES
?
--
Yo
Hi
I need to get a cookie value, how can I do?
I do just so: id = Request.Cookies (date)
Someone can help me?
--
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
Hello,
I am a seasoned pro in python but have not worked with web frameworks.
I use DITA Open Toolkit for generating xhtml content (short HOWTO
documents) and I want to implement some kind of "simple CMS" which main
functionality would be to* list and browse through* the xhtml content
(static c
That's exactly what i did!
In my Nodes table i have this one "domains = models.ForeignKey(Domains)" so
now i can see the dependecy i want?Or? Is there any way when i press
"Domains" on my interface to be able to see the "Nodes" table graphically?
--
You received this message because you are sub
create a FK on Node to Domain
On Mon, May 13, 2013 at 2:37 PM, Giorgos Kontogiorgakis <
shortgeorge...@yahoo.com> wrote:
> Thanks a lot for your help mate!It was silly by me that i did the steps in
> wrong order!I added the foreign-key successfully now!But i have 1 more
> question if you can hel
Thanks a lot for your help mate!It was silly by me that i did the steps in
wrong order!I added the foreign-key successfully now!But i have 1 more
question if you can help me!I already have,let's say,a table named Domain
and a table name Nodes and i want to make a dependecy on my webinterface
wh
On Mon, May 13, 2013 at 1:56 PM, Torsten Bronger <
bron...@physik.rwth-aachen.de> wrote:
>
> The data is supposed to be sent as one big compressed file und
> uncompressed on the web server. The tar'ing is done by the
> uploading person, before using the browser. Then, it is sent
> through the In
you should have run manage.py schemamigration myapp --initial before
changing the model (before adding the FK)
then adding the FK and after that manage.py schemamigration myapp --auto
can you describe what you did exactly?
On Mon, May 13, 2013 at 1:56 PM, Giorgos Kontogiorgakis <
shortgeorge...@
Hallöchen!
Serdar Dalgic writes:
> I'm just brainstorming about the situation, I think the best
> solution would be some kind of Javascript functions in the
> frontend part, before implementing a file upload. You can tar the
> file in a temporary directory, an upload that temp file with the
> rea
I use DITA Open Toolkit for generating xhtml content (short HOWTO
documents).
I wonder if it would be possible to use Django to create CMS which main
functionality would be to* list and browse through* the xhtml content.
Furthermore, it would be desirable to perform search over the metadata
co
Hi everyone,
I'm trying to add a single foreign Key on an existing Database using
Django.I searched on internet and i found out South migration.I installed
South and i tried to add the Foreign Key but when i call "./manage.py
schemamigration myapp --auto" (myapp is the of my existing app) i get
Hallo Torsten,
I'm just brainstorming about the situation, I think the best solution would
be some kind of Javascript functions in the frontend part, before
implementing a file upload. You can tar the file in a temporary directory,
an upload that temp file with the real file's name.tar.gz
I'm not
I cannot import gdal utilities anymore.
I was working on a project on an Arch Linux machine, using Django 1.5.1
and GDAL 1.9.2.
Today I have updated my distro and the DataSource failed its import:
from django.contrib.gis.gdal import DataSource
...
Exception Value: cannot import name DataSource
On Sun, May 12, 2013 at 9:08 AM, wrote:
> I have an app within my project called popular_keywords.
>
> Within urls.py I have this:
>
> urlpatterns = patterns("apps.popular_keywords.views",
>url("^%keyword/(?P.*)%s$" % _slashes,
> "matching_items_list", name="matching_items
Hi,
I want to implement 2-step registration in my Django application.
I am using Django 1.5 and MySQL.
So, I have decided to use either 'django-user-accounts' by Pinax or
'django-registration' by James Reynolds.
I am confused which app to use.
User Accounts takes care of all the aspects regarding
have you used virtenviroment ?
could you please check a python version ?
Many thanks,
Serge
+380 636150445
skype: skhohlov
On Fri, May 10, 2013 at 1:25 AM, wrote:
> Unable to setup MySQL on CentOS5.9 for DJango
>
> raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
> d
51 matches
Mail list logo