yes, it is possible.
You are correct, they need to listen to a different port
On Sun, Jul 8, 2018 at 9:24 AM Gerald Brown wrote:
> Is it possible to run 2 servers (Apache & Nginx) on the same system?
>
> Maybe if they listen on different ports i.e. 80 & 81
>
> On Sunday, 08 July, 2018 01:09 PM,
class HomeTests(TestCase): def setUp(self): self.board =
Board.objects.create(name='Django', description='Django board.') url =
reverse('home') self.response = self.client.get(url) def
test_home_view_status_code(self):
self.assertEquals(self.response.status_code, 200) def
test_home_url_resolves_hom
Hi
I am working with Django 1.11 and Python 3.4.
I am attempting to pass multiple keyword arguments from a reverse() call
(from my app called `uploads`).
*urls.py*
urlpatterns = [
url(
regex=r'^add/$',
view=views.add_new,
name='add_new'),
url(
regex=r'^de
hi all
help plz :)
as brief i am using django an linux
i create project and app in this project called movies
in models i create 2 classes mdb and mm
in views when i try to import class from model.py give me error
from .models import mdb
output:
Traceback (most recent call last):
File "/root/
from .models import mdb
Please do import this class in views.py
On Sun, Jul 8, 2018, 6:42 PM wrote:
> hi all
> help plz :)
> as brief i am using django an linux
> i create project and app in this project called movies
> in models i create 2 classes mdb and mm
> in views when i try to import clas
push the code to git repository
--
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
make sure that __init__.py file exists and not deleted
--
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 thi
try to use url('view function name' x y)
--
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 e
object.add_child(...)
From: "pranay reddy"
To: "django-users"
Sent: Friday, July 6, 2018 6:12:44 AM
Subject: If any one have experience with Django treebeard package
Plz expalin how to add child for sibling
Sent via the [ http://play.google.com/store/apps/details?id=com.blackberry.hub
This example may help you
http://django-treebeard.readthedocs.io/en/latest/tutorial.html
You people should get used to read tutorials before asking a question.
In case you don't find what you look for then it ok to ask.
Le dim. 8 juil. 2018 15:49, 'Kristofer Pettijohn' via Django users <
djang
hi I to all the to all who sees this male I am trying one project in which
everything is good but when I call something from using slug I got this
error
Here are my models.py,HTML and HTML while in which I am calling and urls.py
in groups directories
/*
python is indentation sensitive, so if you don't do what the language
expects, it'll have that error.
you really should use an ide or text editor with python integration, since
you will catch these easy errors when they happen.
plus, take a look at what you posted above, with everything in one
>
> HI Umar kambala
Indentation means if we consider a case to use a if loop then i can be
written like
if(condition):
do this
else:
else do this
if you getting this error it may you have used the wrong syntax
Thank You
--
You received this message because you are subscr
Hi Umar,
On 2018-07-08 13:43, Umar Kambala wrote:
Please when I run python manage.py test I gets
IndentationError : unident does not match any outer indentation level.
Python uses indentation for scoping. This is, really, really basic
Python knowledge.
Looking at the questions you post he
a slug is a character string, right? so why do you define it as an int
type in your urls?
see the example for slugs at https://docs.djangoproject.com/en/2.0/ref/urls/
path('articles//', views.article, name='article-detail'),
On Sunday, July 8, 2018 at 11:20:05 AM UTC-4, Anirudh choudhary
Waaw thanks for that brotherly advice given. Am really really grateful.
Will try to do just that. Thanks once again.
Plz another problem is that when I run python manage.py runserver
everything works find but when I opens my browser I gets "no internet
connection" what might be de problem? Thanks
O
the error states the issue: your computer is not connected to the internet.
https://docs.djangoproject.com/en/2.0/intro/tutorial01/#the-development-server
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop
Am being using de django server which is 127.0.0.1 and never had any
problem till today.
Thanks
On Jul 8, 2018 4:51 PM, "Jason" wrote:
the error states the issue: your computer is not connected to the internet.
https://docs.djangoproject.com/en/2.0/intro/tutorial01/#
the-development-server
--
Umar,
IIRC - (and it's been a while since I used windows) - Windows maintains
a global flag for internet connectivity.
Unfortunately if windows decides it's not connected , bad many apps
such as Internet Explorer, Edge etc, refuse to attempt to make any TCP
connections even if they are to localho
Hi
I am not quite sure what you are suggesting? Do you think the url() in the
urlpatterns should be changed - I have not seen a format like that?
Perhaps you can give an example as it relates to the code I posted.
Thanks
Derek
On Sunday, 8 July 2018 16:10:22 UTC+2, mottaz hejaze wrote:
>
> t
Thank Roger
On Jul 8, 2018 5:13 PM, "Roger Gammans" wrote:
> Umar,
>
> IIRC - (and it's been a while since I used windows) - Windows maintains a
> global flag for internet connectivity.
>
> Unfortunately if windows decides it's not connected , bad many apps such
> as Internet Explorer, Edge etc,
thanks a lot man.
url(r'^register$', views.register, name='register'), is not working now
On 7/8/18, Ahmad Hassan wrote:
> from django.contrib.auth.views import LoginView, LogoutView
>
>
>
>
> urlpatterns = [
>
>
>url(r'^login/$',
> LoginView.as_view(template_name='accounts/login.html')
On zondag 8 juli 2018 08:40:03 CEST darkblakh...@gmail.com wrote:
> Traceback (most recent call last):
> File "/root/Desktop/website/movies/views.py", line 4, in
> from .models import mdb
> ValueError: Attempted relative import in non-package
You should really create your "movies app" with:
`py
On zondag 8 juli 2018 13:58:33 CEST Derek wrote:
> I am attempting to pass multiple keyword arguments from a reverse() call
> (from my app called `uploads`).
There's no call to reverse in your code. But to do this:
reverse('upload_details', kwargs={'view': 'site', 'mid', 3})
> *urls.py*
>
> ur
Hello,
I have been trying to scale modelformset_factory and run into the issue
that modelformset_factory is working correctly when I implement with just 2
formsets. Code here:
https://gist.github.com/martin1007/6474f3a7f14540bae729e8b4d31f8ca2
But when I try to scale it using lists it does
Hi,
Thanks for the direction. It seems that running mod_wsgi on a different
port thru a virutal host conf for apache is the way to move forward. I'll
see if I can figure out how to do that.
Regards,
On Sat, Jul 7, 2018 at 9:39 PM, Avraham Serour wrote:
> yes, it is possible.
>
> You are corre
Many Thanks
On Friday, 6 July 2018 16:13:35 UTC+1, Melvyn Sopacua wrote:
>
> On vrijdag 6 juli 2018 16:46:08 CEST 'dtdave' via Django users wrote:
> > Many thanks for the help on this. I have implemented the following:
> > models.py
> > start_date = models.DateField(null=True, blank=True,)
> >
27 matches
Mail list logo