Re: django wamp

2018-07-08 Thread Bob Bobsled
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

Django modelformset_factory with prefix not scaling

2018-07-08 Thread martinnn2019
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

Re: Using multiple keyword arguments with reverse()

2018-07-08 Thread Melvyn Sopacua
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* > >

Re: ValueError: Attempted relative import in non-package

2018-07-08 Thread Melvyn Sopacua
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:

Re: help, How can i solve this error please

2018-07-08 Thread Ahmad Hassan
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/$', >

Re: Help

2018-07-08 Thread Umar Kambala
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,

Re: Using multiple keyword arguments with reverse()

2018-07-08 Thread Derek
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: > >

Re: Help

2018-07-08 Thread Roger Gammans
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

Re: Help

2018-07-08 Thread Umar Kambala
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 --

Re: Help

2018-07-08 Thread Jason
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

Re: Help

2018-07-08 Thread Umar Kambala
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

Re: Reverse for 'single' with keyword arguments '{'slug': 'sdas'}' not found. 1 pattern(s) tried: ['groups\\/posts\\/in\\/(?P[0-9]+)$']

2018-07-08 Thread Jason
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

Re: Help

2018-07-08 Thread Kasper Laudrup
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

Re: Help

2018-07-08 Thread Anirudh choudhary
> > 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

Re: Help

2018-07-08 Thread Jason
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

Reverse for 'single' with keyword arguments '{'slug': 'sdas'}' not found. 1 pattern(s) tried: ['groups\\/posts\\/in\\/(?P[0-9]+)$']

2018-07-08 Thread Anirudh choudhary
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

Re: If any one have experience with Django treebeard package

2018-07-08 Thread MTS BOUR
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 <

Re: If any one have experience with Django treebeard package

2018-07-08 Thread 'Kristofer Pettijohn' via Django users
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

Re: ValueError: Attempted relative import in non-package

2018-07-08 Thread mottaz hejaze
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

Using multiple keyword arguments with reverse()

2018-07-08 Thread mottaz hejaze
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

Help

2018-07-08 Thread mottaz hejaze
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

Re: ValueError: Attempted relative import in non-package

2018-07-08 Thread Swati Pushp
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

ValueError: Attempted relative import in non-package

2018-07-08 Thread darkblakhood
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

Using multiple keyword arguments with reverse()

2018-07-08 Thread Derek
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(

Help

2018-07-08 Thread Umar Kambala
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

Re: django wamp

2018-07-08 Thread Avraham Serour
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

Re: django wamp

2018-07-08 Thread Gerald Brown
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, m1chael wrote: best not to fight Apache and just use nginx for django On Sat, Jul 7, 2018, 11:07 PM >