Re: login()/logout() with valid user and request not attaching user to session

2022-10-22 Thread Jordan Edmunds
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

login()/logout() with valid user and request not attaching user to session

2022-10-22 Thread Jordan
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

Re:

2019-11-20 Thread Jordan Micle
> > 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

where I should send file?

2019-11-12 Thread Jordan Micle
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

Re: I have two models which are associated to each other through a ForeignKey how to delete the child model object without affecting parent model object

2019-11-09 Thread Jordan Micle
> > 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

Making Django Form dynamically

2019-11-05 Thread Jordan Micle
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

Set the model of Form automatically?

2019-11-05 Thread Jordan Micle
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

Re: beginner's question

2019-11-05 Thread Jordan Micle
> > 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

Re: beginner's question

2019-11-05 Thread Jordan Micle
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...

Re: Help with manage.py help

2019-11-02 Thread Jordan Micle
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.

Re: How does django pass data through post?

2016-12-01 Thread Jordan W
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

How does django pass data through post?

2016-11-28 Thread Jordan W
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

Mobile eCommerce with Django

2016-03-23 Thread Jordan Koncz
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

How do I make my form process data and output in another page?

2014-07-21 Thread Jordan S
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

Re: Field available via Django shell but not via web application (crossposted from StackOverFlow)

2011-11-02 Thread Jordan
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

Field available via Django shell but not via web application (crossposted from StackOverFlow)

2011-11-01 Thread Jordan
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

Stability of django.utils.crypto?

2011-09-01 Thread Jordan
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.

Django rosetta: a way to automatically create po files for the missing languages

2010-06-19 Thread Jordan
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

Django-CMS: Project name prefix in the URL

2010-02-13 Thread Jordan
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

Wanted: someone to customize shipping module in Satchmo

2010-02-02 Thread Jordan
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

help with a small project

2009-06-30 Thread jordan
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

Django doesn't translate the "timesince" filter.

2009-06-24 Thread Jordan
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,

Re: Scientific Data Frontend with Django

2009-06-18 Thread jordan
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

Re: Django vs. Liferay

2008-09-28 Thread Nic Jordan
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

Django vs. Liferay

2008-09-27 Thread Nic Jordan
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 --~--~-~--~~~---~--~---