are u sure u are running the command from the root of your project where
the folder "website" and file manage.py is ?
try to cd to your project root, then run
python manage.py runserver
On Oct 2, 2017 6:51 AM, "harsh sharma" wrote:
> i am getting this error whenever i m trying to run django-admin
@login_required
def edit_service(request, service_id, template_name="edit-service.html"):
context = RequestContext(request)
context['service_id'] = request.COOKIES.get('service_id', None)
...
response = render_to_response(template_name, context)
response.set_cookie('service_id', service_id)
ret
can you show the code where you set the cookie before retrieving it
On Oct 2, 2017 6:35 PM, "Samuel Muiruri" wrote:
> I have a site that relies on checking if a cookie exists for service_id and
> if it does checks if you can upload files for service... this works nicely
> offline but on pushing c
Hi all,
Why is it so that QueryDict for PY3 handles input query string different
from PY2 (part of __init__ of QueryDict from Django 1.11.5):
if six.PY3:
if isinstance(query_string, bytes):
# query_string normally contains URL-encoded data, a subset of
ASCII.
try:
Hi everyone,
It's a miracle I've gotten this far with the amount of knowledge that I
don't have with coding, hosting, django, heroku, git etc. However, I've
been using a heroku server to serve my website for the last couple of
months and I've been able to do so without any issues.
However, la
Holy .. it works!
I have to access the Team_Name class using the 'related_name=regions' and
from that, I was able to access the logo attributes of Team_Name.
Here's what I did.
{% block body_block %}
{% for region in regions_detail.regions.all %}
Hi Gourav, thanks for the input.
Just a question, Can I iterate through the Team_Region to get the teams
listed under the specific id? or shall I do it in Team_Member class? This
is for the DetailView.
On Mon, Oct 2, 2017 at 9:31 PM, Gourav Chawla <
gauravchawla.chawla...@gmail.com> wrote:
> You
I have Product and Categories. A product can be in multiple categories and
off course a Category have multiple products.
The Categories can have Subcategories’ which can have Subcategories. I used
a Category Model with a circular Foreign Key.
Each Product can have specifications/attributes
You'll end up needing to use sockets to get a "live chat" and channels is
one of the quickest way to get there.
On Monday, October 2, 2017 at 6:39:48 PM UTC+3, Kishore Srinivas wrote:
>
> I want to make a chat system in Django, but all those channel stuffs looks
> difficult , so are there any o
I have a site that relies on checking if a cookie exists for service_id and
if it does checks if you can upload files for service... this works nicely
offline but on pushing changes to server it created a bug where even though
the cookie can be seen (on the dev console)
[image: enter image de
It was my nginx configuration. I hadnt noticed the staticfiles directory
was pointing to the wrong place. Thanks for the help!
On Sunday, October 1, 2017 at 9:37:04 PM UTC-6, Alexander Joseph wrote:
>
> environ allows you to use environment variables in your settings files,
> heres the docs
> ht
I want to make a chat system in Django, but all those channel stuffs looks
difficult , so are there any other simpler way to implement a chat system,
thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and st
Always have the documentation with you while following the old
tutorials.when I was starting Django I had big problems while using a
tutorial in Django 1.7 with Django 1.10, nothing worked, but using
documentation you can pretty much find what had changed
--
You received this message because
I hava a new site that I am working on. The site will have prior agreement
with eCommerce sites to include add-ons on their website.
Consider the following example:
My website, ABC.com is targeting ecommerce sites.
For every ecommerce site that sells product X, I want them to include an
add-on tha
You can create another url, view, template to do that.
Just create a url like : team/id
For the above url create a view, say, teams_under_region which accepts the
'id'. Based on that id you can then query your database for teams where
region_member=id. This is just the approach you would follow
You can have a look at Django registrations app[1] for inspiration. Also,
look at the default Django admin login. All of it is there, you just have
to search a little more and you'll get it.
[1]: https://github.com/macropin/django-registration
On Monday, October 2, 2017 at 4:55:14 PM UTC+5:30,
https://docs.djangoproject.com/en/1.11/topics/forms/ you can check this
On Monday, October 2, 2017 at 4:55:14 PM UTC+5:30, djangor wrote:
>
> I m doing a project in django. I've created model classes for each form,
> master tables and generated db tables from classes. Next for the
> correspondi
Have you checked any of the tutorials before you started this project?
I know djangogirls.com did a good job on this need. You may want to check
that tutorial, get something done and come back with what you think isn't
right.
This gets help quicker than waiting for someone to help you generate th
Hi all,
I am new to django , i want to make code for login and registration with
different groups. example school management student ,teacher and parents
should register first and then login in there groups. i want to know basic
structure for that.
--
You received this message because you a
I m doing a project in django. I've created model classes for each form, master
tables and generated db tables from classes. Next for the corresponding
classes/tables,
I want to create HTML forms with post data handling and after each next button
in the forms that I use for submit/ moving to the
Hi guys, I just want to know how to access and load the data associated to
a primary key in a template.
models.py
class Team_Region(models.Model):
name = models.CharField(max_length=50)
# String representation
def __str__(self):
return self.name
class Team_Name(models.Mode
21 matches
Mail list logo