Hey,
Indeed, the problem comes from the representation on PG,
cause I have only good results (0/30 for the minutes) from
the python function.
I don't get though why it is showing the wrong datetime.
@Avraham: It's not the representation of the timezone offset.
It's a false representation. He is
Hello,
Acurl post request is throwing this error:
Request Method:POSTRequest URL:http://127.0.0.1:8000/setProfile/Django
Version:1.8Exception Type:TypeErrorException Value:
argument of type 'ReadOnlyField' is not iterable
Exception
Location:/Library/Frameworks/Python.framework/Versions/3.4/l
No
Note: you use 'ReadOnlyField' argument type is error, case modules call of
django is incorrect
在 2015年5月29日星期五 UTC+8下午4:43:29,Shekar Tippur写道:
>
>
> Hello,
>
> Acurl post request is throwing this error:
>
> Request Method:POSTRequest URL:http://127.0.0.1:8000/setProfile/Django
> Version:1.8Ex
I have a project - 'django_test'.django_test root folder contains one app -
'article',manage.py and django_test sub-folder. Inside django_test
sub-folder I have urls.py -
from django.conf.urls import include, url
from django.contrib import admin
urlpatterns = [
# Examples:
# url(r'^$'
You need the second URL to be /hello/template/
and then it the article.urls you add
url(r'^template/$, views.hello_template,name='hello_template')
On Friday, May 29, 2015 at 12:05:47 PM UTC+2, akshat wrote:
>
> I have a project - 'django_test'.django_test root folder contains one app
> - 'artic
Hi,
Try this views.py
from django.contrib.auth import authenticateuser = authenticate(username='',
password='secret')if user is not None:
# the password verified for the user
if user.is_active:
print("User is valid, active and authenticated")
else:
print("The passwor
hi ,
Try to use the django administration to create the user authentication with
admin.py,views.py and forms.py
try by using this link:
https://docs.djangoproject.com/en/1.8/topics/auth/default/
On Wednesday, May 27, 2015 at 9:24:59 PM UTC+5:30, Carlos Ribas wrote:
>
> Hello All,
I guess you might have an old database created using the PostGIS template.
See
http://gis.stackexchange.com/questions/112592/installed-postgis-extension-not-listed-for-database
On Thursday, May 28, 2015 at 5:09:47 PM UTC-4, Marcela Campo wrote:
>
> Hi all,
> I am upgrading an app from django 1
Hi
I have problems to post some json data from a python script using *requests*
to a django view defined as base classed view.
Thinking that problem is with permissions I also installed django rest
framework to temporary allow any user to call the view.
the file with post data is looking like:
Hello,
Thanks for responding. I am not sure where in the code this is coming from.
I have this code in my view. Not sure if this is the culprit. If it is,
what is a better way to access this data.
class UserPrefSerializer(serializers.ModelSerializer):
class Meta:
*owner = serializer
Hi aRkadeFR,
On 05/29/2015 02:09 AM, aRkadeFR wrote:
> Indeed, the problem comes from the representation on PG,
> cause I have only good results (0/30 for the minutes) from
> the python function.
[snip]
The OP already found and posted the solution (see below) and it is not
related to Postgres. He
Mmm I am not sure of this but I guest that this number is not a primary key
(pk start in 1 not in 0 in postgres and mysql), it is a formset control
number used by formset for group fields in the server side ( for create
forms in correct order also)
El miércoles, 27 de mayo de 2015, Matthias Müll
awesome explanation.
I was only aware of time zone information, and got to
understand the daylight saving time not that long ago.
Glad to know, after reading from you, the historical
differences on the time offset of the same geographical
area.
Have a good weekend :)
On 05/29/2015 06:00 PM, Ca
I am doing something like this.
http://stackoverflow.com/questions/4808329/can-i-call-a-view-from-within-another-view
I have my original view that actually gets render as html.
the html have a button that runs another view. with all the logic to
process the information. and at the end I want to r
in the second view I am doing at the end.
return original_view(request, message="successfully")
--
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
If I change this to
class Meta:
*owner = serializers.ReadOnlyField(source='owner.username')*
model = UserPrefs
fields = ('owner', 'name', 'value')
depth = 1
I get a error: {"value":["This field is required."]}
--
You received this message because you are su
Why should it? The browser requested the original view, and the code returned a
response to that request. The browser doesn't know or care that the process of
constructing that response involved calling another view function.
If you want to change the URL, instead of returning the result of anot
can I redirect with an argument?
On Friday, May 29, 2015 at 1:00:07 PM UTC-5, Daniel Roseman wrote:
>
> Why should it? The browser requested the original view, and the code
> returned a response to that request. The browser doesn't know or care that
> the process of constructing that response in
You can redirect with whatever arguments you want, as long as the receiving URL
accepts them.
--
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+unsub
so that redirect needs to be catch by the url, interesting.
On Friday, May 29, 2015 at 1:22:40 PM UTC-5, Daniel Roseman wrote:
>
> You can redirect with whatever arguments you want, as long as the
> receiving URL accepts them.
--
You received this message because you are subscribed to the Goo
I'm constructing my file-upload dialog using jquery(jq)/javascript/html
where the file-upload is supposed to begin like this:
htmlStr = 'SELECT FILE TO
UPLOAD:';
jq("#upldfildialog").append(htmlStr);
Everything seems to work except for actually being able to capture the file
information
Hello,
I have to confess that I did not understand your suggestion. How this will
help me to reverse the logic of my system? I mean, instead of User with or
without a profile (the Person class, in my case), I want a Person with or
without a User.
Thanks anyway
Em quarta-feira, 27 de maio de 2
Hello Carlos,
On 05/29/2015 03:19 PM, Carlos Ribas wrote:
> Hello,
>
> I have to confess that I did not understand your suggestion. How this
> will help me to reverse the logic of my system? I mean, instead of User
> with or without a profile (the Person class, in my case), I want a
> Person with
23 matches
Mail list logo