getting error "Project matching query does not exist."

2017-04-11 Thread nitin
Hi, I have setup existing django project at localsystem and its migrate successfully. after migrate i have run following "python manage.py runserver" to run django project. After that i am getting error message "Project matching query does not exist." on terminal and as well as browser. Pleas

Can you post/submit to the same view named in urls.conf?

2017-04-11 Thread miguel vfx
> url(r'^register/(?P[-\w]+)/$', rrs_views.rrs_register_student, > name="rrs_register_student"), > def rrs_register_student(request, student_id='', section=''): Good day, I suspect that I'm doing something wrong here. What I wanted to achieve is... - When the page is loaded, it will

Re: getting error "Project matching query does not exist."

2017-04-11 Thread ludovic coues
You got lucky, you might have pasted just enough of the traceback to receive some help. Check the data you have in your database, look like there is no object Project with an id=1. 2017-04-11 11:57 GMT+02:00 : > Hi, > > I have setup existing django project at localsystem and its migrate > succes

Re: Can you post/submit to the same view named in urls.conf?

2017-04-11 Thread ludovic coues
You failed to post the bare minimum information required to debug your problem. Error of type NoReverseMatch have close to nothing to do with the function. So the line `def rrs_register_student` is not useful. The message with the error clearly state that no reverse where found for rrs_register_s

Re: getting error "Project matching query does not exist."

2017-04-11 Thread nitin
Hi, I am not getting your point can you please let me know of in which file i can change to solve this issue. On Tuesday, April 11, 2017 at 4:56:01 PM UTC+5:30, ludovic coues wrote: > > You got lucky, you might have pasted just enough of the traceback to > receive some help. > > Check the dat

Re: getting error "Project matching query does not exist."

2017-04-11 Thread Andréas Kühne
Hi, I think his point is that no file change will resolve this. :-) In the file "brickly/framework/middleware.py" you are searching for a Project with the database ID 1 - and it doesn't exist. The middleware apparantly needs a Project to function. So you can either add a project to your database

form wizard

2017-04-11 Thread Pranay Verma
Hi Is there any way to use form wizard in Django 1.10 ao above -- 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

Re: getting error "Project matching query does not exist."

2017-04-11 Thread nitin
Hi, Previous error solve and thanks for that. now i am getting new error of ValidationError Please see below screen shot. Please let me know of what is the problem now.

Re: Let's Encrypt installation fails with WSGI on Ubuntu 14 LTS

2017-04-11 Thread Andreas Schosser
Hi Moreplavec > AH00526: Syntax error on line 26 of /etc/apache2/sites-enabled/my-domain. > cz_crm.conf: > Name duplicates previous WSGI daemon definition. I had a similar issue on one of our servers. Since we enforce https I just commented out the following directives in the original conf and en

Unicode decoding error

2017-04-11 Thread Christophe Pettus
I've run into the issue described in the code below, where (as far as I can tell) a natural use of __str__ in Python 2.7 results in a Unicode error. I'm not quite sure how to write this code to work properly on both Python 2 and Python 3; what am I missing? (Note this issue happens on Python 2

Re: Unicode decoding error

2017-04-11 Thread Tim Graham
As ​documented you must return *text* and not *bytes* from __str__() when using @python_2_unicode_compatible. That means six.text_type(self.a) rather than str(self.a) (which returns bytes on P

Re: Unicode decoding error

2017-04-11 Thread Christophe Pettus
Thanks, and thanks for accepting my documentation change suggestion! https://github.com/django/django/pull/8349 > On Apr 11, 2017, at 09:52, Tim Graham wrote: > > As ​documented you must return text and not bytes from __str__() when using > @python_2_unicode_compatible. That means six.

Re: Abridged summary of django-users@googlegroups.com - 24 updates in 12 topics

2017-04-11 Thread Bhawesh Agarwal
Hello Friends, I am looking for Django, Python opening. If anyone has a requirement please contact me. -- Bhawesh Agarwal *Electronics and communication Engineering.* *The LNM Institute of Information Technology,* *Contact :- +917597867887* -- You received this message because you are subscri

Re: Include pictures in content

2017-04-11 Thread Steve Watts
I also don't normally comment, but in your case, you might also try prefacing assets with media or static - i.e. http://yourwebsite.com/media/assets/... or http://yourwebsite.com/static/assets/... . That said, it's hard to know without seeing your settings.py file from your project. As it is, t

Re: New to django and ORM. So a basic question about data inserts

2017-04-11 Thread Camilo Torres
Hi, Lets suppose we simplify your problem and we have these 2 django models: from django.db import models class Person(models.Model): name = models.CharField(max_length=255, null=False, blank=False) def __str__(self): return self.name class Residence(models.Model): address

Re: Unicode decoding error

2017-04-11 Thread Mike Dewhirst
On 12/04/2017 2:52 AM, Tim Graham wrote: As ​documented you must return /text/ and not /bytes/ from |__str__()| when using |@python_2_unicode_compatible|. That means |six.text_type(self.a)| ra

Re: Django relationships and the admin page

2017-04-11 Thread Camilo Torres
Hi, Seems you need here admin inlines, these allow you to insert/edit related objects inline when editing the main object. For example, when editing a Site, you will be able to also edit Images and Locations, though it only supports 1 level, so with default configuration you may probably not be

Re: form wizard

2017-04-11 Thread Camilo Torres
Hi, What is "form wizard"? Can you provide a link or an explanation, example? On Tuesday, April 11, 2017 at 9:29:39 AM UTC-4, Pranay Verma wrote: > > Hi > Is there any way to use form wizard in Django 1.10 ao above > -- You received this message because you are subscribed to the Google Groups "

Re: getting error "Project matching query does not exist."

2017-04-11 Thread Camilo Torres
Hi 1) How did you solved the first issue? You should be supposed to solve it by adding a row to a database table (the one related to your Project model) with id=1. 2) You have not pasted enough information for your ValidationError issue, please don't paste screen shots (at least, not only a scre

Form.changed_data no longer includes changes to related fields as of Django 1.10?

2017-04-11 Thread Robert Rollins
I've got code that expects Form.changed_data to include the Groups to which a User belongs when the User edit form I wrote changes them. It works in Django 1.9.13, but tests fails in Django 1.10. Is there a known change to Django that would cause this? I don't see any mention of Form.changed_d

Does anyone in this group hire out to update code .

2017-04-11 Thread webchair93
I am looking for a django programmer I have a site that was written in python django code and I am not proficient enough to make page correction. HELP!!! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop r

Re: Form.changed_data no longer includes changes to related fields as of Django 1.10?

2017-04-11 Thread Tim Graham
Hi Robert, nothing comes to mind immediately. I'd suggest to use git bisect to find the commit in Django that caused the change https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/#bisecting-a-regression and we can go from there. On Tuesday, April 11, 2017 at 8:03:18

Revoke celery task

2017-04-11 Thread Mauro Sánchez
Hello, I am trying to revoke a Pending task in celery without success. I have tried all this ways: app.control.revoke(task_id) revoke(campaign.state_task) async_result.revoke() AsyncResult(task_id).revoke() None of them work. I am using: celery==3.1.23 django-celery==3.1.17 Django==1.9.13 tenant-s

Re: getting error "Project matching query does not exist."

2017-04-11 Thread nitin
Hi, here are following issues are getting. I have filled tables "project_project" and "user_user". please let me know another tables name for add row to solve ValidationsError Issue Environ