Re: Django Admin

2023-03-24 Thread Jd Mehra
- Clear the browser cache and cookies and then try to log in again. Sometimes an old CSRF token can be stored in the browser cache and can cause issues. - On Friday, 24 March 2023 at 07:50:37 UTC+5:30 Ikrombek wrote: > > Hello, > How can I use dental teeth section. For example, do I need

Re: Help on Django + Plotly integration

2023-03-24 Thread Jd Mehra
Create a view that will generate the Plotly chart. In the view, you can use the Plotly library to create a chart object and return it as an HTML div string. Here is an example view: from django.shortcuts import render import plotly.graph_objs as go import plotly.offline as opy from django.http

Re: Help in django. I want to upload files

2023-03-24 Thread Jd Mehra
yeah, Ryan's comment definitely makes sense On Thursday, 23 March 2023 at 20:22:17 UTC+5:30 Ryan Nowakowski wrote: > Your field is called e_resource with an underscore but you're trying to > reference it using a dash. > > > On March 22, 2023 11:40:00 PM CDT, Shubhi Pandey > wrote: >> >> the er

Simple admin filter

2011-11-18 Thread Michele JD Granocchia
I need to filter a class (with list_filter) to get all objects with "myfield" (a date field) with month = january Instead of using a complex custom filter, i would like to create a simple filter to link to the following url: /admin/myobject/myfield__month=1 How would i do that? Do i have to creat

Re: Hi, I'm trying to reset my db (using multiple dbs) but flush and reset don't seem to drop the tables.

2011-04-02 Thread jd
well, I ended up doing a sqlreset and dbshell and pasting it in there. That worked but it seemed like maybe a bug so I posted it. Cheers! On Apr 2, 5:21 pm, jd wrote: > I've tried > > >python manage.py flush    --database 'retail' > > ...and then changed the mo

Hi, I'm trying to reset my db (using multiple dbs) but flush and reset don't seem to drop the tables.

2011-04-02 Thread jd
I've tried >python manage.py flush--database 'retail' ...and then changed the model a little. syncdb gives no output about table creation afterwards, and objects that were in the db remain after the flush. also tried ... >python manage.py reset retail_store --database 'retail' same thin

Re: problems with admin links after upgrade 1.1 -> 1.3 dev

2011-03-28 Thread jd
That worked! Thank you S much! never would have found that :) On Mar 28, 5:59 pm, Karen Tracey wrote: > On Mon, Mar 28, 2011 at 1:39 PM, jd wrote: > > I upgraded to 1.3 dev from 1.1 and now my admin links don't work. the > > page domain.com/admin/ works and it shows m

problems with admin links after upgrade 1.1 -> 1.3 dev

2011-03-28 Thread jd
Hi all, I upgraded to 1.3 dev from 1.1 and now my admin links don't work. the page domain.com/admin/ works and it shows my models listed, but when clicking on any of them it doesn't leave the model list page. Instead it keeps stacking the url I want to visit onto the existing url. I.e. domain.com/

contenttypes and dumpdata options

2011-01-29 Thread jd
hello, What's the current recommended way to deal with contenttypes when you move a db using dumpdata? I know about excluding it, but I read something about using the ---natural option with the dump command would work as well. Does this work when including contenttypes in the dump? Which is the pre

Re: Database edit tutorial / open source projects to learn from

2010-12-21 Thread Michele JD Granocchia
I'll check! Thanks! On 21 Dic, 05:44, Kenneth Gonsalves wrote: > On Mon, 2010-12-20 at 06:58 -0800, Michele JD Granocchia wrote: > > Can anybody post a good tutorial / open source project to learn > > something about database transactions? > > postgresql manual i

Database edit tutorial / open source projects to learn from

2010-12-20 Thread Michele JD Granocchia
Can anybody post a good tutorial / open source project to learn something about database transactions? I didn't find anything useful... Thanks in advance!!! ^_^ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: ForeignKey search

2010-12-14 Thread Michele JD Granocchia
Ys thanks a lot :) > > Why not just: > > cl2 = > Class2.objects.filter(fieldwfk__field1__icontains=searchtext).order_by('-id') -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@google

ForeignKey search

2010-12-13 Thread Michele JD Granocchia
(django 1.2) Hi, i need to do the following: Class 1, with a field called "field1" (CharField) Class 2, with a field called "fieldwfk" (ForeignKey) User enters a text and submits, which goes into "searchtext" --- searchtext = request.GET.get('text') Now i want to get all Class2 objects WHERE fi