Cascading ondelete of session.

2018-03-22 Thread Eliot Simcoe
Hello world, I'm very new to Django and I come from a web2py background, so if this should be obvious please forgive me. My webapp allows anonymous users to upload files to my server for processing. I would like to track these files by the session, and when the session expires I would like thes

Using Django Sessions

2018-03-22 Thread Manu Febie
Hello, I am practicing for my college exams. I am building a Restaurant Order System with Django and I am using Django sessions for the first. I borrowed some ideas from the "Django by example". Below you can find the MenuItem model and Order Model. class MenuItem(models.Model): category =

Re: Finding a decent ordering widget ...

2018-03-22 Thread Bernd Wechner
Julio, Funnily stumbled on the same notion myself last night. I've worked up a niceish sample here: https://jsfiddle.net/34Lv6try/68/ So it's possible without too much hassle using JQuery Think I'll build be a widget out that fiddle ;-). Regards, Bernd. On Wednesday, 21 March 2018 23:14:54

Django and graphs

2018-03-22 Thread Mohsen
Hi all: I am quite new to Django, and I am looking for Django extensions that support graphs and networks. Would anybody guide me with a tutorial or some hints how we may use Django together with Networkx or SNAP graph library packages. Many thanks Mohsen -- You received this message becaus

Re: IntegrityError: FOREIGN KEY constraint failed: Django 2.0.3

2018-03-22 Thread Seven Reeds
Uh, am I not using the ORM? If I am not then what must I do to get back on track? I just realized that i didn't include the "Delete" CBV in my original post. I do not have easy access to the code at the moment so what follows is a rough approximation of what that code is about and is prolly f

Re: Django 1,11 upgrade, render template with context in template.Node

2018-03-22 Thread Christian Ledermann
For the record, I ended up with: def get_context_dict_request(context): """Decompose a Context or a RequestContext to a request and dict.""" ctx = context.flatten() try: request = context.request except AttributeError: request = None return ctx, request class E

Re: I NEED HELP PLEASE

2018-03-22 Thread Sadialiou Diallo
hello. first you need to be with the documentation. It is your best freind clic here to go there https://docs.djangoproject.com/fr/2.0/intro/ https://docs.djangoproject.com/en/2.0/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

[no subject]

2018-03-22 Thread Muwanguzi Derrick
Hello -- 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 post to this group, send email to django-users@googlegroups.c