Strange import error with GeoIP
Hi all, I have one website that suddenly and often show me an import error. Django Version: 1.5.5 Exception Type: ImportError Exception Value : cannot import name GeoIP The GeoIP works if I start a python manage.py shell and in fact the problem is not always present, it's enough for me reload the page and get the website working again, but after 3-4 clicks I got the ImportError error again. The site in on apache/ubunt 13.04 on a digitalocean server. I worked in the same server in a virtualenv during the development, but when I deployed I got this strange error. The GeoIP is called on a view that is triggered when a submit button is pressed than GeoIP isn't involved during the home page loading- What I did until now: - Upgraded to django 1.5.5 (I used on the development the 1.5.1) - Deleted all .pyc - Check the module on the shell - Installed the geoip C libs Anyone can help me to solve this problem? Thanks in advance -- Karim Gorjux -- 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.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGU%3DNpjTSt5Otk-qZSwDgX%2BhR1pk51Xz07Ax5-R-L91yBg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Help in Django-contact-form
Can you show us also the view? On Wed, Jan 28, 2015 at 8:04 AM, Akash Nimare wrote: > Hello everyone. I am using a third party app django-contact-form. It is > working fine but the problem is it does not show my models in admin. I > can't see the data in admin. The docs are very poor. > Here is my model.py > > from django.db import models > from contact_form.forms import ContactForm > class ContactForm(models.Model): > name = models.CharField(max_length=100) > email = models.EmailField(max_length=200) > body = models.CharField(max_length=200) > def __str__(self): > return (self.email) > > admin.py > from django.contrib import admin > from . import models > from contact_form.models import ContactForm > class ContactFormAdmin(admin.ModelAdmin): > list_display = ("name", "body", "email") > admin.site.register(ContactForm, ContactFormAdmin) > I am using django 1.7 > http://django-contact-form.readthedocs.org/en/latest/quickstart.html > > -- > 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.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/035e8b0b-e502-4ba5-b8e2-9923afa43909%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/035e8b0b-e502-4ba5-b8e2-9923afa43909%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Karim N. Gorjux -- 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.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGUDWMDg1UQb7KMZ5e0jK%3DcmfrVa-%3DfRzyXUAiqV6ATtYQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Best practice to render the view based on the user
Hi! I would like to render views based on the user. I have some differents type of users on my app and I would like to create a class like this one for the view: class MyView(MyCustomView) # MyCustomView subclass View def __init__(self, *args, **kwargs): # common code for all persons def personA(self): # code for personA def personB(self): # code for personA # def personN(self): # code for personA def anyPerson(self) # For any user non listed above Then if the MyView is run, the function based on the user is automatically fired. My doubts (at the moment): 1) Do you think is the a good way to face the problem? 2) I have methods in the models to know what person is logged. How I can automatically load the right function in the class based on the user? Thank you -- Karim N. Gorjux -- 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.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGX4Oy%3D4qs6QLLkugsqw1Tb1niaEwCqAaa3-ZncsE8-iig%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Select Field With Other option
On Wed, Jan 28, 2015 at 4:28 PM, Sergiy Khohlov wrote: > You can not do it directly. This should be do by JavaScript's using at > HTML side. All field s are added to form and some of them are hidden. > Is not possible to use crispy forms and change the widget with the Field() object? http://django-crispy-forms.readthedocs.org/en/latest/layouts.html#layout-objects-attributes -- Karim N. Gorjux -- 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.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGURkuH22qKv9XZR%3DWFMN4P5PWV4WwK8T8DBLfP9TXBcRA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Dropzone.js and images POST on new object
Hello mates! I tried dropzone.js on my app and everything worked fine. Now I want to use it in a view that loads a form for tthe creation of a new object. The dropzone where the user drop the images should load the images on the server instantly and not when the user submit the form. This approach is easy to do when the object is already in the model, for example when I want to change the profile image of the user, but when the object is not even in the database, how I can upload instantly the images? I though that I could write a view to use with dropzone that get the images and store them in the sessions. Than when the user submit the form, the form object get the images from the session and save them in the new object. Could be a good design pattern? Thank you! -- Karim N. Gorjux -- 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.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGXU0DynH%3D%2BbmGx8Ks_C7ZsyHAn8%3D7TsbRK6TyGTpckEbg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Dropzone.js and images POST on new object
On Tue, Feb 10, 2015 at 7:25 PM, James Schneider wrote: > I wouldn't store binary data like an image in a session, especially if you > have a DB-backed session system. > > [] > > Thank you James. -- Karim N. Gorjux -- 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.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGULWMQrmr6Mj9zw3C2xYadG0iSJMt81gLze5cNNrvd6DA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Form Wizard: how to send instance_dict based on the request
Hello mates! I have some problems to understand how to set the view for the NamedUrlSessionWizardView creating a instance_dict based on the user in the request. in my urls.py url(r'wizard/new/(?P.+)/$', ServiceCUWizard.as_view( FORMS, # the list of ['form_name', form_object] url_name='service:new_wizard_step', done_step_name='finished', ), name='new_wizard_step'), It works, I got all the forms as expected. The forms are modelforms and I would like to bound the instance if is possible, but I can populate it only using the request. I think I could do that subclassing def __init__, but the instance_dict is a class attribute, how I can populate it? Thnak you -- Karim N. Gorjux -- 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.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGVpYubs4vekD3ynEP9oAMeF8NcZXVV2PmBOT%2BaukGL8qQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Form wizard: how I can jump on a specific step?
Hi all! I'm moving a really long form on a FormWizard[1] using the class " SessionWizardView " everything is fine. All works in adding and editing of the model I'm using on the modelset. Now I have some questions to improve the "quality" of the wizard. I added a navbar with the active class for the current step. I wold like to make the navbar clickable and let the user jump to a specific step. Because I'm using the wizard in adding end in editing and the validation is form by form (step by step), how I can make the navbar clickable? 1) In adding I can click on the previous forms 2) In editing I can click on every step In the django doc the previous button is creating with this code: Previous Is possible to create a link for a specific step? What about the check if the step was visited and validated? Thank you [1] https://docs.djangoproject.com/en/1.7/ref/contrib/formtools/form-wizard/ -- Karim N. Gorjux -- 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.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGXKhdZXHuxWbp8UfRiVVQcUuSOLa8nHV3s3qQTXW0n%2BnQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Form Wizard: store the session values
When I click on the link for my form, I would like to restore the session values if the user accidentally left the wizard or other cases happened. How I can restore the session and initialize the FormWizard with the session values? Everytime I click on the link to render the view I got an empty form. Thank you. -- Karim N. Gorjux -- 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.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGWCYjFh4D16cOZLgb-EL%2BQnZT859frm%2ByetBxbQw-csYw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Form Wizard: how to send instance_dict based on the request
On Fri, Feb 20, 2015 at 5:49 AM, Collin Anderson wrote: > You could instead just override get_form_instance(step). That way you'll > have access to self.request. > Thank you! -- Karim N. Gorjux -- 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.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGXmP0yHA4TmXGTpywCkY3%2B86gNnx8Y85%2Bz44BePfs3TyA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Delete the file related on the FileField
I'm using a form that get an image and store it in the database. Doing my (manual) tests I discover that the deleting the FileField doesn't remove the associated file on the hard disk. Is there a design pattern to handle the remaining file? Thank you. -- Karim N. Gorjux -- 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.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGWhTivr%2Bk8au0KpFCoCmL619-9kOAeJkCmvSkrXjALNPA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Form Wizard: store the session values
I'm trying to get the data from the session. The SessionWizard store the data in the session session_data = request.session[wizard_key_form]['step_data'] at this point session_data is the dictionary with the data in the form filled by the user. But this doesn't work ServiceCreationWizard.as_view( FORMS, initial_dict=session_data, )(request) Working with ipdb and django toolbar and reading the docs here[1] seems to me that the fields name in the session dictionary are a little different from the forma requested by the initial_dict initial_dict wants something like initial = { ... '0': {'subject': 'Hello', 'sender': 'u...@example.com'}, ... '1': {'message': 'Hi there!'} ... } but session are stored in this way u'step_data': { u'0': {u'0-subject': u'Hello', u'0-sender': u'u...@example.com'} u'1': {u'1-message': u'Hi there!'}, } Do I have to convert all the keys name to pass the session values to the initial_dict? Maybe there is a better way to backup and restore the session? Thank you [1] https://docs.djangoproject.com/en/1.7/ref/contrib/formtools/form-wizard/#django.contrib.formtools.wizard.views.WizardView.initial_dict On Wed, Feb 25, 2015 at 12:14 PM, Karim wrote: > When I click on the link for my form, > [...] > -- Karim N. Gorjux -- 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.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGW5L1ZupsnW49UCYD_GO7vszxXBh%2BKmjKYSQwcrVryHjg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Delete the file related on the FileField
On Thu, Feb 26, 2015 at 2:13 AM, Rodrigo Zayit wrote: > Hi Karim, > [] > > Thank you! -- Karim N. Gorjux -- 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.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGWiDoo%3DY-GiyL3FCNzg%2BKnAvqDWYSWv%2BaZF8wDQozuXdA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Form Wizard: store the session values
Solved with a very easy approach. I override the WizardView get method and I use a session variable to understand if the user want to restore the edit or create a new form def get(self, request, *args, **kwargs): """ This method override the WizardView handling the restore of the session if the value request.session['restore-wizard'] is True """ try: if request.session['restore-wizard']: return self.render(self.get_form()) except KeyError: # just call the default super get return super(ServiceCreationWizard, self).get(request, *args, **kwargs -- Karim N. Gorjux -- 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.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGX8%3DCU9uwi_n3bX1hh3yZx8JSPSTV8OuJwguDW%3D-7irqQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Suggiestion on how split a views.py file
Hello everyone! I have a huge views.py about 1200 lines. I would like to split it in different files moving some classes. Do you have any suggestion on how handle the import/dependencies in the project? Thanks -- Karim N. Gorjux -- 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.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGUbeDHZ8B_4xhqdCu59vBLMGB4G1EFT60MQoh79sRRynA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Suggiestion on how split a views.py file
On Wed, May 13, 2015 at 5:45 AM, James Schneider wrote: > There's no requirement that you use views.py, or any of the file names > that are created using 'django-admin.py', Thanks James for the answer, my problem is to update the various import in my app to refer to the new file with the code I moved into. At the moment, the only thing that can help is to have all the view tested to show an error in the import during the Test Harness. Obviously I have not all my code cover by a test. -- Karim N. Gorjux -- 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.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGU%2B5iftxXArkVcL_xoRWKMCPCsgh-qLq-uE2juOx%3DTxdQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Implement a instant saving on edit form
Hello everyone, I had to implement automatic saving on the various edit forms on the webapp I'm working on. The purpose is (I guess) to avoid lost of data if the user move from the edit page without saving first. I know that is a problem that concern more the client side than the server side, but I'm writing here to get your opinion. I thought about few possible solutions. 1) add an alert message if the user try to go away from the form without saving. (rejected because if the user close the browser or BSOD...) 2) _ add an ajax call after every "blur" event[1] to save the new edit. (Adding a control to detect an effective edit and avoid unnecessary ajax calls) _ modify the view to save and return only the form if the request.is_ajax() I have to implement the functionality for one form, I can use a mixin in the view for that (I already have one somewhere buried in my app.. :D :D), I have to figure out how to do the same in JS (smartly as in python...) Do you have any suggestions? Thanks Links: [1] https://developer.mozilla.org/en-US/docs/Web/Events/blur "if I have seen further, it is by standing on the shoulders of giants -- Isaac Newton" -- Karim N. Gorjux -- 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.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGWCuV4naZsqbgLy3A_vyWdYmOuc7%2B0bg-UzMujZ4Tkt3Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: can i use sqlite for big project?
On Thu, Jun 25, 2015 at 5:08 PM, Arindam sarkar wrote: > i need to develop a job portal . is there any problem if i use sqlite ? > coz i am having problem to setup mysql or postgresql . please help. sqlite was not created for big portal. Use postgresql -- Karim N. Gorjux -- 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.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGWneN%2B%2BDsef7f%3DDW84qG7hu9Q4CubgLtmk8nZNdXBnyxg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Implement a instant saving on edit form
On Thu, Jun 25, 2015 at 3:16 PM, Karim wrote: > Hello everyone, I had to implement automatic saving on the various edit > forms on the webapp I'm working on. The purpose is (I guess) to avoid lost > of data if the user move from the edit page without saving first. > I found this: http://www.smashingmagazine.com/2011/12/05/sisyphus-js-client-side-drafts-and-more/ I'll give it a try :-) -- Karim N. Gorjux -- 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.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGWPabJKaf%3DkwMCqZF1UFH2tEDm4HhQ5M2Tev8Vo7DCP2A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Modify a queryset and add computed value to the objects
Hi everyone! I have a "Services" model and I would like to get a QuerySet with all the services filtered based on the distance between the logged user and the service. I have latitude and longitude about the user logged in and I filter the services based on the computed distance. At the moment I build the QuerySet Service.objects.all() and after that I exclude the services that I don't need, but I think there is a better way to do that. I was thinking to use a Manager. Quoting the docs: "Adding extra Manager methods is the preferred way to add “table-level” functionality to your models. (For “row-level” functionality – i.e., functions that act on a single instance of a model object – use Model methods, not custom Manager methods.)" As a "eternal newbie" I ask you 1) The distance must be computed based on two parameters "long" and "lat". Is that possible to define a manager only for this purpose? Is it a good practice? 2) The computed value is not just useful for the QuerySet, but I need also that on client side so I serialize it and I send it using JSON. Is possible to make sure that the manager attach the field "distance" to the objects in the QuerySet? Thank you! -- Karim N. Gorjux -- 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.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGUPt5f52oABVifeu2%3DPeYHLAAekrGwbVocvdDGQeyQJgA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Django-nose and errors on the admin
Hello everyone, I have an admin.py that I "promote" as a package splitting the original admin.py The file app/admin/__init__.py import all the splitted files. Everything works. The admin works. The default testrunner works, but we use nose and django-nose at their last version and I have exceptions on register and unregister model admins. We are using django 1.7.7 planning the update soon could be this the problem? The error I'm facing is the same issued on this article: https://www.peterbe.com/plog/cryptic-errors-when-using-django-nose Any idea? -- Karim N. Gorjux -- 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.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGVQzNoyE6sc%2B%3D8Y3uJxSUbv1yg7iAJNxWCkaX2ePMWJKA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Mock external api call (xero)
Hello everyone, I would like to test my code that call the xero api server and to do that I want create mocked response to test different scenarios. At the moment I want test just few endpoints, my Idea is to create a class as a container of the items needed to render. The items are generated by a class that use a "stamp" of the returned json and add or modify the stamp using the given kwargs. What you think about the example above? Maybe you have better idea? e.g. response = MockedXeroResponse() invoice = fakeInvoice(**kwargs) # kwargs add fields another_invoice = fakeInvoice(**{'Amount':1000}) response.add(invoice, another_invoice) # response.json # return the json response as the XERO api with the two invoices. Thank you -- Karim N. Gorjux -- 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.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGXGhbcAQhxB6aB06Ur92Dh%2BmQZQciQY2xGeCJsBe%2Bcnfw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Django admin, InLineForm and many2many fields
Hello everyone, I have a problem and I don't understand how to solve it. I have a simple model: Supplier(models.Model): organization = models.CharField(..) location = models.ManyToManyfield(Location, blank=True) Location(models.Model): address = models.CharField(..) active = models.BooleanField(default=True) I created the inlineform to use in the supplier django-admin page: class LocationInLineForm(admin.TabularInLine): model = Supplier.Location.through I would like to show the records in the inlineform based on the supplier page in django admin. An administrator in the django admin click on a supplier and the inlineform must shows only the location owned by the selected supplier. - I don't understand which method override (get_queryset? formfield_for_foreignkey?) - I don't know how to get the is of the supplier loaded in the django admin. I would like also filter the location based on the active boolean field. Is possible to do that? Thanks -- Karim N. Gorjux -- 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.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGX1XQTi%3Du1zLQzwcgDS6eQsqpNap5Ez0Rr69fEz-hiYuQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: Django and asynchronous tasks
On Thu, Nov 10, 2016 at 7:05 PM Alain Muls wrote: > Hi All > [...] > I found celery very hard to work with. I liked a lot ` https://django-q.readthedocs.io/`. Give it a go. -- Karim N. Gorjux -- 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.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACeuRGX-H1jMiaDChoez9R4SqtucCR_c%2BzfKP_CU327TLUCSUA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Running Django admin site using Lighttpd
Hi all, I have been trying to run my django site using lighttpd rather than using the development server that is shipped with django and I managed to run the site of the project but I failed to run the admin site. Any ideas how I can approach this problem? Thanks. -- Karim Hamdan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Running Django admin site using Lighttpd
When I try to access the admin site using "http://localhost/admin"; I get a 404 not found error instead of getting the login page to enter my admin credentials to log in the admin site. -- Karim Hamdan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Running Django admin site using Lighttpd
Let me rephrase my question. I followed this<http://groups.google.com/group/django-users/browse_thread/thread/8cd8bd294a57e1ea/c807a810080cf70c?#c807a810080cf70c>HowTo on this group that describes how to run Django using lighty with fcgi, I can access my project website successfully but I fail to access Django's admin site and get a 404 Not Found error instead. I am running lighttpd-1.4.19 and python-django 1.0-1ubuntu1 on my Ubuntu Intrepid machine. -- Karim Hamdan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Running Django admin site using Lighttpd
Thanks a lot for the replies. It seems that I was following the wrong HowTo. To make things clear, here's what I am trying to do. I am actually new to using Django so I followed the 4 tutorials provided on Django's website, and everything (admin site, polls site) was working fine using the development server. Then, what I am trying to do now is to use lighttpd instead of the dev server so I changed the conf file of lighttpd according to this<http://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/>HowTo that explains how I can use Django with FastCGI (the lighttpd section of the HowTo) so now the polls site is accessible but the admin site gives 404 error. I hope my explanation made things clearer. Thanks Adam for sharing your conf file but lighttpd is the required server that I should be working with :( -- Karim Hamdan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Can I simply disable the CSRF? crazy
On Tue, Aug 17, 2010 at 23:29, Rolando Espinoza La Fuente wrote: > See csrf_exempt decorator: > http://docs.djangoproject.com/en/dev/ref/contrib/csrf/#exceptions I had problems too, but the decorator is a good patch for the moment :-) Thanks! -- Karim Gojux www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Newbie question about url and seo
Hi all! This is my first post here in the list, I'm new in django and python but I really found it fun and exciting so here we are! My first question is pretty simple. I noted that the url I create using urls.py are cleaned and pretty but there is no index.html or simila. It seems that every url point to a directory. Is that good in terms of SEO? I guess that is even better than the old fashion way with the index.something, but I don't know. Thanks in advance -- Karim Gojux www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Newbie question about url and seo
On Fri, Aug 20, 2010 at 18:19, David Euzen wrote: > Hello, > > you should think of it in terms of ressource, not of file. URLs are > about ressources not about files even if sometimes ressources are > files. Thanks for your answer. Was very useful! Have a nice day. -- Karim Gojux www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Problems loading static files on runserver (I mean images and css)
As I read here http://docs.djangoproject.com/en/dev/howto/static-files/ I configure the settings.py and the urls.py to load a template in runserver. ## urls.py ## from django.conf import settings [...] (r'^media/(?P.*)$', 'django.views.static.serve', {'document_root': 'settings.STATIC_DOC_ROOT'}), ## end of urls.py ## ## settings.py ## [...] STATIC_DOC_ROOT = '/Users/karim/Projects/simplesite/template/media/' [...] ## end of settings.py ## My doubt is in these 3 variables. How I have to use they? MEDIA_ROOT = '' MEDIA_URL = '' ADMIN_MEDIA_PREFIX = '/media/' I tried a lot but without success. Another question. In the template how I have to refer to the files? I have just 2: "style.css" and "header.jpg" that are located in "/Users/karim/Projects/simplesite/template/media" Is these code right? Thanks! -- Karim Gojux www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Problems loading static files on runserver (I mean images and css)
On Fri, Aug 27, 2010 at 10:57, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > > Thanks a lot for all your advices. I work a lot on settings.py and now is more professional. The mistake was in ADMIN_MEDIA_PREFIX = '/media/' I changed it in ADMIN_MEDIA_PREFIX = '/admin-media/' And everything works now. Thanks! -- Karim Gojux www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
How to create a gerarchical list in admin for flatpages?
Hi all! I'm working to create my CMS on Django, I would like to realize a easy admin page for my flat pages that in Django-CMS is called "site map". How I can do that? Are there any tutorial or how to about that? Have you any advice? Thanks! The site map in Django-CMS: http://www.django-cms.org/media/uploads/cms_page_media/2/3_pagelist___.png -- Karim Gojux www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Overriding flatpages class meta
Try to modify the flatpages source! You can find it directly in your django installation. -- Karim Gojux www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: How to create a gerarchical list in admin for flatpages?
On Tue, Aug 31, 2010 at 14:11, Karim Gorjux wrote: > I would like to > realize a easy admin page for my flat pages that in Django-CMS is > called "site map". I found what I need. Is here: http://code.google.com/p/django-mptt/ -- Karim Gojux www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
I don't understand the difference between these two views
Working on the Coltrane's Book :-) ... I create two views that do the same thing but the first one use the generic view and the second a render to response. I don't understand why because both works but the second besides don't passe the category object, don't load the django.core.context_processors.media I set in settings.py. So if I use the second view, the media I use with MEDIA_URL are not loaded. Why happening this? [...] href="{{ MEDIA_URL }}/style.css" [...] from django.shortcuts import get_object_or_404, render_to_response from coltrane.models import Entry, Category from django.views.generic.list_detail import object_list # this works and load everything def category_detail(request, slug): category = get_object_or_404(Category, slug=slug) return object_list(request, queryset=category.live_entry_set(), template_name='coltrane/category_detail.html', extra_context={ 'category': category }) # this doesn't load the django.core.context_processors.media def category_detail(request, slug): category = get_object_or_404(Category, slug=slug) return render_to_response( 'coltrane/category_detail.html', { 'object_list': category.live_entry_set()} ) -- Karim Gojux www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: I don't understand the difference between these two views
On Thu, Sep 2, 2010 at 17:46, Daniel Roseman wrote: > See here for an explanation: > http://docs.djangoproject.com/en/1.2/ref/templates/api/#subclassing-context-requestcontext > especially the "Note" box a screen or so down. Thanks! Now everything is clear -- Karim Gojux www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: With apache2 and mod_python I can't get static files loading in admin
On Fri, Oct 1, 2010 at 15:17, Daniel Roseman wrote: > Either use > a DocumentRoot directive Thanks! I solved the problem using the directive. Thanks really a lot! :-) -- K. Blog Personale: http://www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Cherokee for home developing
Hi all! I'm trying to create my devbox for Django and I use a server in my lan with Ubuntu and Cherokee installed in. For every project I use virtualenv so I install django and flup and I create in cherokee panel the virtual server using the path of my virtualenv. All I do is explained in the Cherokee documentation page. The only change I do is the interpreter in Information Resource Settings where I use the absolute path of the python executable on my virtualenv. The browser at my virtual host's ulr show the "it worked!" message, if I just try to enable the admin and I try to go there in the browser I get this message: Unhandled Exception An unhandled exception was thrown by the application. This is really strange. If I try to reload the url, I get randomly a "Unhandled Exception" or a "It worked!" message. I tried also with an application that I develop that I'm sure it worked before and with my surprise still works in cherokee, but if I try to get the admin page I simply can't. The result is the same error ad describe above. Anyone could help me? I'm really near to get my devbox working and never think about deploying or the stuff around that anymore... help me just developing! Thanks in advance! :-) -- K. Personal Blog: http://www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
On Thu, Oct 28, 2010 at 19:32, Karim Gorjux wrote: > Hi all! I'm trying to create my devbox for Django and I use a server I fixed the problem with the settings.py and now admin works. The problem now is to avoid the flup's "Unhandled Exception" and let django shows it debug -- K. Blog Personale: http://www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
On Thu, Oct 28, 2010 at 21:06, Robbington wrote: > Glad to finally see some one using Cherokee with django. Dont just use > it in development, its actually less memory intensive than apache as > well as having an awesome admin interface. Now I can just develop on Django with Cherokee I haven't any hosting at the momento > Anyway enough plugging. > > To avoid problems and for simplicty I would advise using Cherokee > Uwsgi config to serve up your python code. Now I solved all my problems working with settings.py. Seems that also the debug works, but If I'll be again in trouble I'll get a try at uwsgi. Anyway the Cherokee server is hosted in a VirtualBox on my Mac. I had a lot of trouble trying to configure a web server with django on the Mac and I'm really happy to had found this solution. Thanks Rob for the support :-) -- K. Blog Personale: http://www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
I have just one question. While I'm editing the source of the project, to see the result I have always to restart the server or there is another way? -- K. Blog Personale: http://www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
Thanks for all your answer, the topic get a little divergence, but it's ok, I still use Cherokee for developing even if is not so comfortable as I thought. > The best way to save yourself time and effort is really to use the > Django development server when testing out alterations. Yes I guess so, but I had many problems to serve static files, and the :8000 port wasn't so cool so I tried to work with a production web server even for the developing. > Karim, you may find that refreshing your project is easier with uWSGI as > opposed to something > like FastCGI, in reference to your question about having to restart Cherokee > each time you make changes. Yes, I noted that when I edit a url and sometimes the code, I have to kill the fastcgi process to see the result in the browser. I think that I could run the fastcgi as explained in the django documentation: ./manage.py runfcgi method=prefork socket=/home/user/mysite.sock pidfile=django.pid and map in vim file a kill command kill `cat $PIDFILE` Another solution is take a look at the uWSGI configuration Anyway is a nice topic ;-) -- K. Blog Personale: http://www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Add admin action to Django User
On Mon, Nov 1, 2010 at 05:03, Django-learner wrote: > Hi, I want to add an customized action to user management in django > admin site. I can see that only delete selected user is available, how > can I add more to that? Did you try to google that? This is my **first** result: http://docs.djangoproject.com/en/dev/ref/contrib/admin/actions/ -- K. Blog Personale: http://www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Add admin action to Django User
Maybe you'll find this also useful: http://www.theotherblog.com/Articles/2009/06/02/extending-the-django-admin-interface/ -- K. Blog Personale: http://www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
On Sun, Oct 31, 2010 at 01:27, Max Countryman wrote: > Yes, absolutely. :D Good luck! Max, I'm trying with uwsgi and Cherokee. Seems to work, but if I edit the code, I have to kill the uwsgi process to see the modification on the browser. Is that normal? -- K. Blog Personale: http://www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
On Mon, Nov 1, 2010 at 21:21, Max Countryman wrote: > Karim, I would set it up using a UNIX socket. Then all you have to do is rm > the socket path. :) There is no need to kill uWSGI in that case. Let me study that, because there is always a newbie side in me that sometimes scream out :D If this will drive me crazy, I'll write you here again if you let me. Ciao! -- K. Blog Personale: http://www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
How create a simple "brochure" website in django?
Hi all! I'm a relative newbie in Django and I spending a lot of time study it in these days. I read many tutorials and books and I'm surprised to found very interesting resource to how create a wiki, a blog, app like twitter even a social bookmarking website but I never found a simple tutorial to explain how to create just a website. I would like to create a website with some flatpages. I tried to use the contrib app in django and is very easy, but really very essential. Even get the flatpages to populate a menu in a template was just an add of few weeks ago. I would read a tutorial that cover this needs maybe using the flatpages contrib, why not? * Add the tinymce wysiwyg editor with support to load multimedia file to include within the page. For example a image. * Let the editor create href link to other pages in the website easily * Organize the pages in gerarchical and edit in that way in the panel admin as django-page-cms * internationalization of the pages from the panel admin I still wonder that I can't found any tutorials or books that cover this essential and maybe simple task so I ask you if you know where I can get any resource to achieve these features in my next project. Thanks! :-) -- K. Blog Personale: http://www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: How create a simple "brochure" website in django?
On Thu, Nov 4, 2010 at 15:06, bruno desthuilliers wrote: > You may not realize that what you're describing here is a full blown > CMS, and as such is a tad more complex than simple thing like a blog > or wiki or dumbed-down twitter clone. I strongly suggest you try some > existing CMS like django-cms or LFC > > http://www.lfcproject.com/ > http://www.django-cms.org/ Thanks! I understand why I can't find anything on internet about that. Do you know if there is a really simplecms where I can work on without too much problems? -- K. Blog Personale: http://www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: How create a simple "brochure" website in django?
On Thu, Nov 4, 2010 at 18:26, James wrote: > Yes, there is. > > You should take a look at "Practical Django Projects" (be sure to get > the 2nd edition) by James Bennett. In the book he creates a > simple-cms with a tinymce editor. > > He has the source code published here: > http://bitbucket.org/ubernostrum/practical-django-projects/src I read this book, but the cms is a blog called coltrane and handle the pages with flatpages -- K. Blog Personale: http://www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: How create a simple "brochure" website in django?
Now I'm trying django-cms, but I would like to find some really essential to study on. -- K. Blog Personale: http://www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
django-cms error: no module named simplesite.urls
Hi all, I'm just taking a look to the django-cms. I followed all the instruction, but when I try to connect to the site I get this error - log - File "/home/karim/Projects/e_dcms/lib/python2.6/site-packages/django/core/servers/basehttp.py", line 280, in run self.result = application(self.environ, self.start_response) File "/home/karim/Projects/e_dcms/lib/python2.6/site-packages/django/core/servers/basehttp.py", line 674, in __call__ return self.application(environ, start_response) File "/home/karim/Projects/e_dcms/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 245, in __call__ response = middleware_method(request, response) File "/home/karim/Projects/e_dcms/lib/python2.6/site-packages/django_cms-2.1.0.beta3-py2.6.egg/cms/middleware/multilingual.py", line 59, in process_response language = getattr(request, 'LANGUAGE_CODE', self.get_language_from_request(request)) File "/home/karim/Projects/e_dcms/lib/python2.6/site-packages/django_cms-2.1.0.beta3-py2.6.egg/cms/middleware/multilingual.py", line 25, in get_language_from_request pages_root = urllib.unquote(reverse("pages-root")) File "/home/karim/Projects/e_dcms/lib/python2.6/site-packages/django_cms-2.1.0.beta3-py2.6.egg/cms/models/__init__.py", line 50, in new_reverse url = django.core.urlresolvers.old_reverse(viewname, urlconf=urlconf, args=args, kwargs=kwargs, prefix=prefix, current_app=current_app) File "/home/karim/Projects/e_dcms/lib/python2.6/site-packages/django/core/urlresolvers.py", line 351, in reverse *args, **kwargs))) File "/home/karim/Projects/e_dcms/lib/python2.6/site-packages/django/core/urlresolvers.py", line 272, in reverse possibilities = self.reverse_dict.getlist(lookup_view) File "/home/karim/Projects/e_dcms/lib/python2.6/site-packages/django/core/urlresolvers.py", line 194, in _get_reverse_dict self._populate() File "/home/karim/Projects/e_dcms/lib/python2.6/site-packages/django/core/urlresolvers.py", line 162, in _populate for pattern in reversed(self.url_patterns): File "/home/karim/Projects/e_dcms/lib/python2.6/site-packages/django/core/urlresolvers.py", line 244, in _get_url_patterns patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/home/karim/Projects/e_dcms/lib/python2.6/site-packages/django/core/urlresolvers.py", line 239, in _get_urlconf_module self._urlconf_module = import_module(self.urlconf_name) File "/home/karim/Projects/e_dcms/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module __import__(name) ImportError: No module named simplesite.urls - log - I google the simplesite.urls but I can't find where and what is. I also write to the django-cms maling list but is moderated and needs times to get an answer so I hope that one of you knows where I made the mistake. Thanks in advance! -- K. Blog Personale: http://www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: django-cms error: no module named simplesite.urls
On Thu, Nov 4, 2010 at 19:35, Karim Gorjux wrote: > Hi all, I'm just taking a look to the django-cms. I followed all the > instruction, but when I try to connect to the site I get this error my mistake. Was the settings.py wrong! :-| -- K. Blog Personale: http://www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Create a simple Editor with image support
Hi all, I would like to create a "improved" flatpage application adding a editor and the support of image files. My target is to edit a static web page load images and see a preview. I can add easily a editor like tinymce, I would try also FCKeditor, but what about the handle of images? Could you show me a guide that explain how to handle images from the editor and django? Thanks -- K. Blog Personale: http://www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Create User from an User extension
Hi all, I successfully extended the User as described in the authorization documentation. Now I would like to use and edit the User and my class Persona not like two entity but just one. When I want to create a Persona, I have also to create a User first. Now the steps are too long, how I can create an admin.TabularInline? I tried this: class UserInline(admin.TabularInline): model = User class PersonaAdmin(admin.ModelAdmin): inlines = [ UserInline, ] But when I try to add a Persona I get the exception "has no foreign key" I guess I have to do the reverse add an PersonaInline to the UserAdmin, but I'm a little confused. -- K. Blog Personale: http://www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Create User from an User extension
On Sat, Nov 13, 2010 at 00:08, Steve Holden wrote: > When you add a Persona the UserInline lets you enter a User record, but > the User has to be saved before the Persona. You could do this by > extending the Persona.save() method to save the User as well. Thanks a lot. I'll try. -- K. Blog Personale: http://www.karimblog.net -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Form containing a Mutipolygon field for Django 1.3
I am working on a GeoDjango project. I have a model.py wich extend the user model and contains a MultiPolygonField class Membre(models.Model): user = models.ForeignKey(User, unique=True) #some other attributes mpoly = models.MultiPolygonField() objects = models.GeoManager() class MembreForm(ModelForm): class Meta: model = Membre exclude = ('user',) The form for this model works fine in the admin site. I am now building the front office for it. The problem that I'am facing is that in the resulting form I get a mpoly (the mutipolygonfield) as a text area, I am facing the same problem as: http://stackoverflow.com/questions/559431/how-to-display-data-using-openlayers-with-openstreetmap-in-geodjango I tryed to use OpenLayer script in my template to simply plot a OpenLayer map but it didn't work (it worked for simple html pages). Is there a GeoDjango specific tag to do that? I think there is maybe a way to do this by using the (GeoDjango Admin widget) but how to do it? How can I use google map api for this field in both admin site and the template I'm working on? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Form containing a Mutipolygon field for Django 1.3
I am using dream weaver so when I deleted the heading http://www.w3.org/1999/xhtml";> the problem of plotting the openlayer map was resolved Now my problem is still the mapping between the data to plot in the map and the multipolygon field, in my object definition On Apr 18, 1:12 pm, GARRAM karim wrote: > I am working on a GeoDjango project. I have a model.py wich extend the > user model and contains a MultiPolygonField > > class Membre(models.Model): > user = models.ForeignKey(User, unique=True) > > #some other attributes > > mpoly = models.MultiPolygonField() > objects = models.GeoManager() > > class MembreForm(ModelForm): > class Meta: > model = Membre > exclude = ('user',) > > The form for this model works fine in the admin site. I am now > building the front office for it. > The problem that I'am facing is that in the resulting form I get a > mpoly (the mutipolygonfield) as a text area, I am facing the same > problem as: > > http://stackoverflow.com/questions/559431/how-to-display-data-using-o... > > I tryed to use OpenLayer script in my template to simply plot a > OpenLayer map but it didn't work (it worked for simple html pages). Is > there a GeoDjango specific tag to do that? > > I think there is maybe a way to do this by using the (GeoDjango Admin > widget) but how to do it? > > How can I use google map api for this field in both admin site and the > template I'm working on? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Form containing a Mutipolygon field for Django 1.3
I think a possible solution is to use : http://django-floppyforms.readthedocs.org/en/latest/geodjango.html the solution given in http://stackoverflow.com/questions/559431/how-to-display-data-using-openlayers-with-openstreetmap-in-geodjango didn't work for me there was a problem with this instruction PolygonFormField=GeneratePolygon._meta.get_field('Polygon') it didn't found the GeneratePolygon object On Apr 18, 3:13 pm, GARRAM karim wrote: > I am using dream weaver so when I deleted the heading > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> > http://www.w3.org/1999/xhtml";> > the problem of plotting the openlayer map was resolved > Now my problem is still the mapping between the data to plot in the > map and the multipolygon field, in my object definition > > On Apr 18, 1:12 pm, GARRAM karim wrote: > > > > > > > > > I am working on a GeoDjango project. I have a model.py wich extend the > > user model and contains a MultiPolygonField > > > class Membre(models.Model): > > user = models.ForeignKey(User, unique=True) > > > #some other attributes > > > mpoly = models.MultiPolygonField() > > objects = models.GeoManager() > > > class MembreForm(ModelForm): > > class Meta: > > model = Membre > > exclude = ('user',) > > > The form for this model works fine in the admin site. I am now > > building the front office for it. > > The problem that I'am facing is that in the resulting form I get a > > mpoly (the mutipolygonfield) as a text area, I am facing the same > > problem as: > > >http://stackoverflow.com/questions/559431/how-to-display-data-using-o... > > > I tryed to use OpenLayer script in my template to simply plot a > > OpenLayer map but it didn't work (it worked for simple html pages). Is > > there a GeoDjango specific tag to do that? > > > I think there is maybe a way to do this by using the (GeoDjango Admin > > widget) but how to do it? > > > How can I use google map api for this field in both admin site and the > > template I'm working on? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
How to override the ModelAdmin "change" form ?
Hi, I'm currently struggling with a custom ModelAdmin. Considering the following model: # Bloc fonctionnel class Assembly(Item): product = models.ForeignKey(to='ProductFamily', on_delete=models.CASCADE , null=True, verbose_name=_('Famille Produit')) functions = models.ManyToManyField(Function, verbose_name=_('Fonctions' )) *performances* = models.ManyToManyField(Performance, verbose_name=_( 'Performances'), related_name='performances') def _get_type(self): return ItemType.ASSEMBLY class Meta: verbose_name = _('Bloc Fonctionnel') verbose_name_plural = _('Blocs Fonctionnels') I have a custom AssemblyAdmin related to it and also a custom AssemblyForm for customizing some fieds. The *performances* m2m field is critical. The performances are captured in the form with a dynamic_raw_id field, which works fine. But when this field is modified, some updates/deletions might be applied in other tables of the database. For this purpose, I need to collect the "performance" pk captured in the html form and compare them with those currently in the database. Basically, when the user clicks on the regular "Save" or "Save and continue" button, I would need to display an alert form (like when you click on the delete button) to explain what would happen. I struggled with some ajax routines but it does not work as expected. I don't know if it's really doable and how to achieve it. Any suggestion is welcome. Cheers. Z. -- 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.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/88135218-a965-46c8-a454-c0376a5682f1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: How to override the ModelAdmin "change" form ?
Hi Mike, Thanks a lot for your feedback. Your situation is quiet different from mine, BUT the way you override change_view and the related template will certainly help me to achieve what I need. ...and getting rid of dirty and unnecessary ajax calls. I keep you posted. Thx. Karim Le vendredi 1 mars 2019 00:06:40 UTC+1, Mike Dewhirst a écrit : > > On 28/02/2019 9:46 pm, karim...@gmail.com wrote: > > Hi, > > I'm currently struggling with a custom ModelAdmin. > > > Karim > > I haven't tried to fully understand your use case. However, this is what I > think your process could be if you do not wish to ajax it ... > > 1. Override the model save() method to call a model method which detects > your trigger scenario and calls the code you wish to execute to collect all > the data you wish to display. This might be in the parent model or the m2m > 'through' model. Unlikely to be in the child model. > > 2. Write a Form to reveal the data you wish to display. It probably needs > to be a ModelForm > > 3. Write a template for the data including any hidden fields for object > pks and additionally consider calling {{ block.super }} to display > inherited stuff if you are extending another template and using the same > block. When I first started to work all this out I was able to get my form > to appear at the top of the ModelAdmin form using block.super and spent a > bit of time hiding the big red [Delete] button because it was too close to > my big blue [Pay now] button. However, as I got deeper into it I somehow > lost that and never got it back. I was so pleased with getting it working > eventually that I persuaded myself I didn't really want it on the same page > anyway. Your mileage may vary :) I think you need to hard-code the form in > the ModelAdmin to get it appearing above everything else. > > 4. Write any necessary urls > > 5. Write a view to manipulate your data, based on the request and your form > > 6. Get the Admin to display it on demand. The first line of the > change_view() method below initialises the ModelAdmin to do absolutely > nothing different than usual. Nothing will happen unless the trigger is > detected. Then finally call to super to resume the normal course of events > when your code is complete. What follows is my own recent experience. The > comments should tell you more than the code > > def change_view(self, request, object_id, form_url='', extra_context=None): > > """ self = SubstanceAdmin > request = wsgi request object > object_id = substance > form_url = no idea! > extra_context = dict of apps, models, admin_urls and permissions > > https://docs.djangoproject.com/en/1.11/ref/contrib/admin/#django. > contrib.admin.ModelAdmin.change_view > > """ > # Let the ModelAdmin resume normal operations with its own template > self.change_form_template = None > # queryset of m2m records from the 'through' table > ingredients = Substance_Ingredients.objects.filter(substance_id=object_id) > subscription = None > for sm2mi in ingredients: > # sm2mi.fee_payable() is the detector which triggers the process > payable, fee_type = sm2mi.fee_payable() # eg., True, PAID_DATA > if payable: > # generate a subscription record with blank token field or > # if one exists with a non-blank token, return None > subscription = billing_subscribe(sm2mi, fee_type) > if subscription:# collect money for the owner > # switch the ModelAdmin to the new template > self.change_form_template = 'payment.html' > # assemble all the necessary data for the view > context = billing_collect_context( > sm2mi, > subscription, > ) > # get everything into the payment_view context > if not extra_context: > extra_context = dict() > extra_context.update(self.admin_site.each_context(request)) > extra_context.update(context) > # wrap the view to protect it with Admin permissions > self.admin_site.admin_view( > # call the view with request and context > billing_payment_view( > request, > sm2mi, > subscription, > context=extra_context, > ) > ) > # only one sm2mi at a time > brea
Re: How to override the ModelAdmin "change" form ?
Hi Mike, I tried what you wrote by overriding the *self.change_form_template* but the form does not appear. Would you please provide me the content of your model admin *billing_payment_view ?* Thanks. Karim Le vendredi 1 mars 2019 00:06:40 UTC+1, Mike Dewhirst a écrit : > > On 28/02/2019 9:46 pm, karim...@gmail.com wrote: > > Hi, > > I'm currently struggling with a custom ModelAdmin. > > > Karim > > I haven't tried to fully understand your use case. However, this is what I > think your process could be if you do not wish to ajax it ... > > 1. Override the model save() method to call a model method which detects > your trigger scenario and calls the code you wish to execute to collect all > the data you wish to display. This might be in the parent model or the m2m > 'through' model. Unlikely to be in the child model. > > 2. Write a Form to reveal the data you wish to display. It probably needs > to be a ModelForm > > 3. Write a template for the data including any hidden fields for object > pks and additionally consider calling {{ block.super }} to display > inherited stuff if you are extending another template and using the same > block. When I first started to work all this out I was able to get my form > to appear at the top of the ModelAdmin form using block.super and spent a > bit of time hiding the big red [Delete] button because it was too close to > my big blue [Pay now] button. However, as I got deeper into it I somehow > lost that and never got it back. I was so pleased with getting it working > eventually that I persuaded myself I didn't really want it on the same page > anyway. Your mileage may vary :) I think you need to hard-code the form in > the ModelAdmin to get it appearing above everything else. > > 4. Write any necessary urls > > 5. Write a view to manipulate your data, based on the request and your form > > 6. Get the Admin to display it on demand. The first line of the > change_view() method below initialises the ModelAdmin to do absolutely > nothing different than usual. Nothing will happen unless the trigger is > detected. Then finally call to super to resume the normal course of events > when your code is complete. What follows is my own recent experience. The > comments should tell you more than the code > > def change_view(self, request, object_id, form_url='', extra_context=None): > > """ self = SubstanceAdmin > request = wsgi request object > object_id = substance > form_url = no idea! > extra_context = dict of apps, models, admin_urls and permissions > > https://docs.djangoproject.com/en/1.11/ref/contrib/admin/#django. > contrib.admin.ModelAdmin.change_view > > """ > # Let the ModelAdmin resume normal operations with its own template > self.change_form_template = None > # queryset of m2m records from the 'through' table > ingredients = Substance_Ingredients.objects.filter(substance_id=object_id) > subscription = None > for sm2mi in ingredients: > # sm2mi.fee_payable() is the detector which triggers the process > payable, fee_type = sm2mi.fee_payable() # eg., True, PAID_DATA > if payable: > # generate a subscription record with blank token field or > # if one exists with a non-blank token, return None > subscription = billing_subscribe(sm2mi, fee_type) > if subscription:# collect money for the owner > # switch the ModelAdmin to the new template > self.change_form_template = 'payment.html' > # assemble all the necessary data for the view > context = billing_collect_context( > sm2mi, > subscription, > ) > # get everything into the payment_view context > if not extra_context: > extra_context = dict() > extra_context.update(self.admin_site.each_context(request)) > extra_context.update(context) > # wrap the view to protect it with Admin permissions > self.admin_site.admin_view( > # call the view with request and context > billing_payment_view( > request, > sm2mi, > subscription, > context=extra_context, > ) > ) > # only one sm2mi at a time > break > return super(SubstanceAdmin, self).change_view( >
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet when using django-role-permission package
Hi I am a new user with Django. I am trying to use the django-role-permission package but I have the error below : [karim@localhost gfmt]$ python ./manage.py check Traceback (most recent call last): File "./manage.py", line 10, in execute_from_command_line(sys.argv) File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 350, in execute_from_command_line utility.execute() File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 324, in execute django.setup() File "/usr/lib/python2.7/site-packages/django/__init__.py", line 18, in setup apps.populate(settings.INSTALLED_APPS) File "/usr/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate app_config = AppConfig.create(entry) File "/usr/lib/python2.7/site-packages/django/apps/config.py", line 90, in create module = import_module(entry) File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/usr/lib/python2.7/site-packages/rolepermissions/__init__.py", line 5, in load_roles_and_permissions() File "/usr/lib/python2.7/site-packages/rolepermissions/loader.py", line 9, in load_roles_and_permissions import_module(settings.ROLEPERMISSIONS_MODULE) File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/home/karim/django/projets/gfmt/gfmt/roles.py", line 2, in from rolepermissions.roles import AbstractUserRole File "/usr/lib/python2.7/site-packages/rolepermissions/roles.py", line 5, in from django.contrib.auth.models import Group, Permission File "/usr/lib/python2.7/site-packages/django/contrib/auth/models.py", line 4, in from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager File "/usr/lib/python2.7/site-packages/django/contrib/auth/base_user.py", line 49, in class AbstractBaseUser(models.Model): File "/usr/lib/python2.7/site-packages/django/db/models/base.py", line 94, in __new__ app_config = apps.get_containing_app_config(module) File "/usr/lib/python2.7/site-packages/django/apps/registry.py", line 239, in get_containing_app_config self.check_apps_ready() File "/usr/lib/python2.7/site-packages/django/apps/registry.py", line 124, in check_apps_ready raise AppRegistryNotReady("Apps aren't loaded yet.") django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. [karim@localhost gfmt]$ In the settings.py file I have : ROLEPERMISSIONS_MODULE = 'gfmt.roles' # Application definition INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'rolepermissions', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'controlPanel', ] If I comment 'rolepermissions', or ROLEPERMISSIONS_MODULE = 'gfmt.roles', it runs (but these lines are required) I dont know what to check Thanks for any hint Cheers Karim -- 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.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8989ab6e-6a93-4431-9ddd-28a95b60f06c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet when using django-role-permission package
Using the branch "django19" fixed the problem. Sorry or the noise Karim Le dimanche 20 décembre 2015 00:06:38 UTC+1, karim bernardet a écrit : > > Hi > > I am a new user with Django. I am trying to use the django-role-permission > package but I have the error below : > > [karim@localhost gfmt]$ python ./manage.py check > Traceback (most recent call last): > File "./manage.py", line 10, in > execute_from_command_line(sys.argv) > File > "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line > 350, in execute_from_command_line > utility.execute() > File > "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line > 324, in execute > django.setup() > File "/usr/lib/python2.7/site-packages/django/__init__.py", line 18, in > setup > apps.populate(settings.INSTALLED_APPS) > File "/usr/lib/python2.7/site-packages/django/apps/registry.py", line > 85, in populate > app_config = AppConfig.create(entry) > File "/usr/lib/python2.7/site-packages/django/apps/config.py", line 90, > in create > module = import_module(entry) > File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in > import_module > __import__(name) > File "/usr/lib/python2.7/site-packages/rolepermissions/__init__.py", > line 5, in > load_roles_and_permissions() > File "/usr/lib/python2.7/site-packages/rolepermissions/loader.py", line > 9, in load_roles_and_permissions > import_module(settings.ROLEPERMISSIONS_MODULE) > File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in > import_module > __import__(name) > File "/home/karim/django/projets/gfmt/gfmt/roles.py", line 2, in > from rolepermissions.roles import AbstractUserRole > File "/usr/lib/python2.7/site-packages/rolepermissions/roles.py", line > 5, in > from django.contrib.auth.models import Group, Permission > File "/usr/lib/python2.7/site-packages/django/contrib/auth/models.py", > line 4, in > from django.contrib.auth.base_user import AbstractBaseUser, > BaseUserManager > File > "/usr/lib/python2.7/site-packages/django/contrib/auth/base_user.py", line > 49, in > class AbstractBaseUser(models.Model): > File "/usr/lib/python2.7/site-packages/django/db/models/base.py", line > 94, in __new__ > app_config = apps.get_containing_app_config(module) > File "/usr/lib/python2.7/site-packages/django/apps/registry.py", line > 239, in get_containing_app_config > self.check_apps_ready() > File "/usr/lib/python2.7/site-packages/django/apps/registry.py", line > 124, in check_apps_ready > raise AppRegistryNotReady("Apps aren't loaded yet.") > django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet. > [karim@localhost gfmt]$ > > In the settings.py file I have : > > ROLEPERMISSIONS_MODULE = 'gfmt.roles' > > # Application definition > > INSTALLED_APPS = [ > 'django.contrib.admin', > 'django.contrib.auth', > 'rolepermissions', > 'django.contrib.contenttypes', > 'django.contrib.sessions', > 'django.contrib.messages', > 'django.contrib.staticfiles', > 'controlPanel', > ] > > If I comment 'rolepermissions', or ROLEPERMISSIONS_MODULE = > 'gfmt.roles', it runs (but these lines are required) > I dont know what to check > > Thanks for any hint > > Cheers > > Karim > > -- 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.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8b934bc9-8805-4388-b9a1-a0aa31689e6b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
databases
Hi, how can create python script in terminal to update the data from old databases into new databases automaticaly -- 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 web visit https://groups.google.com/d/msgid/django-users/be7efd5c-c157-4ee1-b9dc-39533eb66414n%40googlegroups.com.