d down the
underlying issue to be that the cookies and CSRF tokens were not being
transmitted on request/responses - this was an issue in my frontend. Now
(almost) fixed.
On Sat, Oct 22, 2022 at 11:05 AM Jordan wrote:
> So I have some rather bizarre behavior on my hands - I am trying to
So I have some rather bizarre behavior on my hands - I am trying to use
session authentication to login a user. I am able to login/logout through
the django admin console just fine. However, when I explicitly call
django.contrib.auth.login(), nothing happens. No errors are thrown, the
login met
>
> def detail(request,user):
> print('hobbies : ', user.hobbies)
> return render(request, 'company/detail.html',{'details':user})
>
change detail function like this
def detail(request):
print('hobbies : ', user.hobbies)
return render(request, 'company/detail.html',{'details':req
I am going to send to storage from my server.
That storage url is like this
ftp://***.***.com
how can I send file to here?
I tried to use ftplib but says
"socket.gaierror: [Errno 11001] getaddrinfo failed"
like this.
I think this storage is located on s3, I set this storage on washabi s3.
an
>
> when you use foreingkey you will set these options
>
here, change like this
on_delete=models.SET_NULL
user = models.ForeignKey(User, null=True, on_delete=models.SET_NULL)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from
in general when we define django form we set the model of django in class
Meta, like below
class Form(forms.ModelForm):
class Meta:
model = ModelName
fields = '__all__'
But I am going to set this ModelName dynamically
like this.
class Form(forms.ModelForm, modelpar
In general we create form and set the model in class Meta
class Meta:
model = SampleModel
but I am going to set the model automatically.
so I am going to make form dynamically.
Is it possible?
--
You received this message because you are subscribed to the Google Groups
"Django users" group
>
> cd mysite
>
input this command
--
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 view this discussion on the we
if you are going to check the version of installed django
django-admin --version
>
>
--
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...
That error occur because you didn't install django.
Or you didn't activate the environment
--
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.
Daniel, you nailed it! I didn't have the name specified. Adding that makes
it propagate through!
On Monday, November 28, 2016 at 6:34:19 PM UTC-6, Jordan W wrote:
>
> Hi,
>
> I have been working on a small project for myself and some friends, and I
> seem to have hit a hi
Hi,
I have been working on a small project for myself and some friends, and I
seem to have hit a hitch in getting it to work as expected.
In my detail view, I have a small simple form:
{% csrf_token %}
Prepare
My main list view and detail view are class based views, with m
I'm working on a Django back-end that provides an API (using Django REST
Framework) for a mobile app. I'm looking to add eCommerce functionality to
this back-end, with all of this functionality being used by the mobile app
via the API.
The eCommerce functionality needed is the usual standard st
Hi, I'm trying to make a molecular mass calculator webpage, where a user
inputs a chemical formula and gets the mass as a result. I've made this
work in python using raw_input(), but now I'd need to use a form with
django.
I have the html form set up, but when I click "submit", the page just s
Yes, it does work in runserver, as might be expected since runserver
uses exact same environment as the shell.
So that established, how can I fix it?
On Nov 1, 9:04 pm, Andy McKay wrote:
> Is this using the Django built in runserver or some other way of serving
> pages? If not try using runserve
On the web page, I get the following error:
FieldError at /foo/bar/
Cannot resolve keyword 'foos' into field. Choices are: __unused__,
[snip]
The problem code is
User.objects.filter(foos__name='bar')
When I run this in the shell, it works and I get a recordset:
>>> User.objects
According to the stability page (https://docs.djangoproject.com/en/dev/
misc/api-stability/):
"Most of the modules in django.utils are designed for internal use.
Only the following parts of django.utils can be considered stable..."
django.utils.crypto is not listed as one of the stable modules.
somehow. The question is: what is the best place
to execute that command and how? I will be very thankful if you give
me some directions. Thanks.
Jordan Jambazov
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, sen
The problem is that the project name is beeing appended in the URL
when using the URL filter. For example, when I use the filter to get
the URL of the news page, the filter returns "/project_name/news/",
but it should return just "/news/". I have no idea what should I fix
that and hope someone will
We need someone to customize the shipping module in Satchmo. If this
is something you have done or think you have the skills to do please
send information about how much time it will take, per hour cost and
when it can be ready.
--
You received this message because you are subscribed to the Goog
I have an idea for a project but I don't have enough time to do it
myself. I'm hoping to find a django hacker looking for a small side
project for some extra cash.
-
Ideally you are someone interested in startups who is shopping around
for a co-foun
arian). Maybe the cause of this problem is connected
with the request and the way it's done. Help! :)
Jordan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
I've been wanting to do a similar kind of project for a long time.
Just haven't found anyone else who was interested.
So, if anyone wants to try to build something like this, send me a
note.
Jordan
On Jun 18, 2:11 pm, Vincent wrote:
> Good question. Don't know. My guess i
quot;simpel" to write
-Any other points need further investigation and to be more specific
or less "abstract"
If I'm wrong on this, please correct me.
Thank a lot for the support,
Nicola Jordan
On Sep 28, 4:15 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sat
h she/he is willing to share with me?
If there is something other than Django that fits these "needs", I'm
very open for a hint, too.
Thank you in advance for taking the time to answer to my somewhat off-
topic post,
Nicola Jordan
--~--~-~--~~~---~--~---
25 matches
Mail list logo