What step am I missing?

2019-03-10 Thread Eddy Izm
I'm guessing you are in the wrong directory. Please show the directory.

-- 
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/2bdbcb3c-74bf-4ce1-940b-20c41f1dea6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


What step am I missing?

2019-03-10 Thread Joseph Jones
Hello all!
I have been reading
https://www.packtpub.com/application-development/learn-python-programming-second-edition
Since
November, so I am very much new to the Python community. I am currently on
chapter 14 "Web development" which suggests completing the tutorial on
djangoproject.com after installing Django of course. When I've run the
first two commands in the cmd of my PC I get the output the tutorial would
indicate. However when I run the command .../> py manage.py runserver I
receive a command error that no such file exists. My question is what
mistake am I making? I'm hypothesizing one is to create a file entitled
"manage.py' before beginning, however unless I'm misreading the text in the
tutorial the command .../> django-admin startproject runserver
auto-generates said file. Any suggestions on what I'm doing wrong would be
immensely appreciated. Let me apologize in advance if I either, ask for
clarification in any responses(again I am new), or mess up again through
out the course of the tutorial and again reach out to the community. Thank
you for any help,
Joseph

-- 
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/CAJGsC5OzcyMwrW%3D-EmU%2B-3o8esQ2JeVQoJScq%3DHy_mtsxKRuKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Using signals to populate another model based on new registered user

2019-03-10 Thread Kevin Jay
Disregard...Wrong thread.

On Sun, Mar 10, 2019 at 2:47 PM Kevin Jay  wrote:

>
> Here is the relevant template from the link provided
>
>>
>>1. 
>>2. 
>>3. 
>>4. 
>>5. Employee Records
>>6.  {% load staticfiles %}
>>7. 
>>8. 
>>9. 
>>10. 
>>11. 
>>12. 
>>13. Employee ID
>>14. Employee Name
>>15. Employee Email
>>16. Employee Contact
>>17. Actions
>>18. 
>>19. 
>>20. 
>>21. {% for employee in employees %}
>>22. 
>>23. {{ employee.eid }}
>>24. {{ employee.ename }}
>>25. {{ employee.eemail }}
>>26. {{ employee.econtact }}
>>27. 
>>28. >"glyphicon glyphicon-pencil" >Edit
>>29. Delete
>>30. 
>>31. 
>>32. {% endfor %}
>>33. 
>>34. 
>>35. 
>>36. 
>>37. >>Add New Record
>>38. 
>>39. 
>>
>>
>>>
> On Sun, Mar 10, 2019 at 10:06 AM Deepak sharma 
> wrote:
>
>> Simple Answer: DON'T . Resort to signals only when there is No
>> Alternatives left.
>> Using Signals looks tempting but as project grows, it really becomes a
>> Mess to manage each of them. One simply becomes a confused and debugging
>> becomes a real Hell.
>>
>> I suffered from this Problem. hence recommends to Use them as last
>> resort.
>>
>>
>>
>>
>> On Saturday, March 9, 2019 at 8:14:47 PM UTC+5:30, GavinB841 wrote:
>>>
>>> Hi all,
>>>
>>> I am new to working with signals and triggers, what I am trying to
>>> accomplish is:
>>>
>>>1. When a new user registers, I have another model to deal with
>>>subscriptions.
>>>2. I want to create an instance for that subscription model with all
>>>the default values based on the new user.
>>>3. Otherwise no object is created in this model and it has to be
>>>done via a form.
>>>
>>> Would appreciate any help and if any other code is needed let me know.
>>>
>>> *See code below:*
>>>
>>> *Form part of user registration:*
>>>
>>> class ClubInfoForm(forms.ModelForm):
>>> club_address2 = forms.CharField(required=False)
>>> club_address3 = forms.CharField(required=False)
>>>
>>> class Meta():
>>> model = ClubInfo
>>> fields = ('club_name', 'club_logo', 'club_address1', 
>>> 'club_address2',
>>>   'club_address3', 'club_town', 'club_county', 
>>> 'club_country',)
>>>
>>> def clean_club_name(self):
>>> club_name = self.cleaned_data['club_name']
>>> if ClubInfo.objects.filter(club_name=club_name).exists():
>>> raise ValidationError(_("Club already exists"))
>>> return club_name
>>>
>>> *Views for registration:*
>>>
>>> def register(request):
>>> registered = False
>>> if request.method == 'POST':
>>> user_form = UserForm(data=request.POST)
>>> profile_form = ClubInfoForm(data=request.POST)
>>> if user_form.is_valid() and profile_form.is_valid():
>>> user = user_form.save()
>>> user.set_password(user.password)
>>> user.save()
>>> profile = profile_form.save(commit=False)
>>> profile.user = user
>>> if 'profile_pic' in request.FILES:
>>> print('found it')
>>> profile.profile_pic = request.FILES['profile_pic']
>>> profile.save()
>>> registered = True
>>> else:
>>> print(user_form.errors, profile_form.errors)
>>> else:
>>> user_form = UserForm()
>>> profile_form = ClubInfoForm()
>>> return render(request,
>>>   'registration.html',
>>>   {'user_form': user_form,
>>>'profile_form': profile_form,
>>>'registered': registered})
>>>
>>>
>>> *Models for club info used upon registration and the model I want to
>>> update when a new user is created:*
>>>
>>> class ClubInfo(models.Model):
>>>
>>> user = models.OneToOneField(User, on_delete=models.CASCADE)
>>> club_name = models.CharField(max_length=50, default='', unique=True)
>>> club_logo = models.ImageField(upload_to='profile_pics', blank=True)
>>> club_address1 = models.CharField(max_length=30)
>>> club_address2 = models.CharField(max_length=30, default='')
>>> club_address3 = models.CharField(max_length=30, default='')
>>> club_town = models.CharField(max_length=30)
>>> club_county = models.CharField(max_length=30)
>>> club_country = models.CharField(max_length=30)
>>> created_date = models.DateTimeField(default=timezone.now)
>>>
>>> def set_default_packages(sender, **kwargs):
>>> if kwargs['created']:
>>> ClubPackages.objects.create(club_id=kwargs['instance'])
>>>
>>> post_save.connect(set_default_packages, sender=club_name)
>>>
>>> def __str__(self):
>>> return self.club_name
>>>
>>>
>>> 

Re: Using signals to populate another model based on new registered user

2019-03-10 Thread Kevin Jay
Here is the relevant template from the link provided

>
>1. 
>2. 
>3. 
>4. 
>5. Employee Records
>6.  {% load staticfiles %}
>7. 
>8. 
>9. 
>10. 
>11. 
>12. 
>13. Employee ID
>14. Employee Name
>15. Employee Email
>16. Employee Contact
>17. Actions
>18. 
>19. 
>20. 
>21. {% for employee in employees %}
>22. 
>23. {{ employee.eid }}
>24. {{ employee.ename }}
>25. {{ employee.eemail }}
>26. {{ employee.econtact }}
>27. 
>28. "glyphicon glyphicon-pencil" >Edit
>29. Delete
>30. 
>31. 
>32. {% endfor %}
>33. 
>34. 
>35. 
>36. 
>37. >Add New Record
>38. 
>39. 
>
>
>>
On Sun, Mar 10, 2019 at 10:06 AM Deepak sharma  wrote:

> Simple Answer: DON'T . Resort to signals only when there is No
> Alternatives left.
> Using Signals looks tempting but as project grows, it really becomes a
> Mess to manage each of them. One simply becomes a confused and debugging
> becomes a real Hell.
>
> I suffered from this Problem. hence recommends to Use them as last resort.
>
>
>
>
> On Saturday, March 9, 2019 at 8:14:47 PM UTC+5:30, GavinB841 wrote:
>>
>> Hi all,
>>
>> I am new to working with signals and triggers, what I am trying to
>> accomplish is:
>>
>>1. When a new user registers, I have another model to deal with
>>subscriptions.
>>2. I want to create an instance for that subscription model with all
>>the default values based on the new user.
>>3. Otherwise no object is created in this model and it has to be done
>>via a form.
>>
>> Would appreciate any help and if any other code is needed let me know.
>>
>> *See code below:*
>>
>> *Form part of user registration:*
>>
>> class ClubInfoForm(forms.ModelForm):
>> club_address2 = forms.CharField(required=False)
>> club_address3 = forms.CharField(required=False)
>>
>> class Meta():
>> model = ClubInfo
>> fields = ('club_name', 'club_logo', 'club_address1', 'club_address2',
>>   'club_address3', 'club_town', 'club_county', 
>> 'club_country',)
>>
>> def clean_club_name(self):
>> club_name = self.cleaned_data['club_name']
>> if ClubInfo.objects.filter(club_name=club_name).exists():
>> raise ValidationError(_("Club already exists"))
>> return club_name
>>
>> *Views for registration:*
>>
>> def register(request):
>> registered = False
>> if request.method == 'POST':
>> user_form = UserForm(data=request.POST)
>> profile_form = ClubInfoForm(data=request.POST)
>> if user_form.is_valid() and profile_form.is_valid():
>> user = user_form.save()
>> user.set_password(user.password)
>> user.save()
>> profile = profile_form.save(commit=False)
>> profile.user = user
>> if 'profile_pic' in request.FILES:
>> print('found it')
>> profile.profile_pic = request.FILES['profile_pic']
>> profile.save()
>> registered = True
>> else:
>> print(user_form.errors, profile_form.errors)
>> else:
>> user_form = UserForm()
>> profile_form = ClubInfoForm()
>> return render(request,
>>   'registration.html',
>>   {'user_form': user_form,
>>'profile_form': profile_form,
>>'registered': registered})
>>
>>
>> *Models for club info used upon registration and the model I want to
>> update when a new user is created:*
>>
>> class ClubInfo(models.Model):
>>
>> user = models.OneToOneField(User, on_delete=models.CASCADE)
>> club_name = models.CharField(max_length=50, default='', unique=True)
>> club_logo = models.ImageField(upload_to='profile_pics', blank=True)
>> club_address1 = models.CharField(max_length=30)
>> club_address2 = models.CharField(max_length=30, default='')
>> club_address3 = models.CharField(max_length=30, default='')
>> club_town = models.CharField(max_length=30)
>> club_county = models.CharField(max_length=30)
>> club_country = models.CharField(max_length=30)
>> created_date = models.DateTimeField(default=timezone.now)
>>
>> def set_default_packages(sender, **kwargs):
>> if kwargs['created']:
>> ClubPackages.objects.create(club_id=kwargs['instance'])
>>
>> post_save.connect(set_default_packages, sender=club_name)
>>
>> def __str__(self):
>> return self.club_name
>>
>>
>> class ClubPackages(models.Model):
>>
>> club_id = models.ForeignKey(ClubInfo, on_delete=models.CASCADE)
>> PACKAGE_STATUS = (
>> ('0', 'Active'),
>> ('1', 'Not Active')
>> )
>> player_register_package = 

Re: Link does not work correctly

2019-03-10 Thread Gil Obradors
Hi
I can't give you the exactly response,

But I know that you are playing with href=url direct, without using django
template code
I suggest you to change de href of register from about, to a href with
django template code:
Something like : href="{% static 'greenfapp/main.css' %}
But I can't see at urls.py from user app, so I don't know if user apps
register view has any name associociated to

You must write something like href="{ url :'recetas-home' % }  ( nor direct
url)


Good luck


Missatge de Barkalez XX  del dia dg., 10 de març 2019
a les 15:28:

>
> In the browser, when I'm in "http://127.0.0.1:8000/; and click in
> register it takes me to "http://127.0.0.1:8000/register; and it works
> correctly, but if I'm in "http: //127.0.0.1:8000/about/ "and click on
> register takes me to" http://127.0.0.1:8000/about/register/ "instead of"
> http://127.0.0.1:8000/register " . My project :
> https://github.com/barkalez/recetas
>
> --
> 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/f77b7e65-3e0c-4f29-b951-d052e669fe20%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAK-JoTQZpMXi%3DtuVX6jOj73hJfpAhMfDGk6%3DZifWFZ8ucX5E_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Using signals to populate another model based on new registered user

2019-03-10 Thread Deepak sharma
Simple Answer: DON'T . Resort to signals only when there is No Alternatives 
left.
Using Signals looks tempting but as project grows, it really becomes a Mess 
to manage each of them. One simply becomes a confused and debugging becomes 
a real Hell.

I suffered from this Problem. hence recommends to Use them as last resort. 




On Saturday, March 9, 2019 at 8:14:47 PM UTC+5:30, GavinB841 wrote:
>
> Hi all, 
>
> I am new to working with signals and triggers, what I am trying to 
> accomplish is:
>
>1. When a new user registers, I have another model to deal with 
>subscriptions.
>2. I want to create an instance for that subscription model with all 
>the default values based on the new user.
>3. Otherwise no object is created in this model and it has to be done 
>via a form.
>
> Would appreciate any help and if any other code is needed let me know. 
>
> *See code below:*
>
> *Form part of user registration:*
>
> class ClubInfoForm(forms.ModelForm):
> club_address2 = forms.CharField(required=False)
> club_address3 = forms.CharField(required=False)
>
> class Meta():
> model = ClubInfo
> fields = ('club_name', 'club_logo', 'club_address1', 'club_address2',
>   'club_address3', 'club_town', 'club_county', 
> 'club_country',)
>
> def clean_club_name(self):
> club_name = self.cleaned_data['club_name']
> if ClubInfo.objects.filter(club_name=club_name).exists():
> raise ValidationError(_("Club already exists"))
> return club_name
>
> *Views for registration:*
>
> def register(request):
> registered = False
> if request.method == 'POST':
> user_form = UserForm(data=request.POST)
> profile_form = ClubInfoForm(data=request.POST)
> if user_form.is_valid() and profile_form.is_valid():
> user = user_form.save()
> user.set_password(user.password)
> user.save()
> profile = profile_form.save(commit=False)
> profile.user = user
> if 'profile_pic' in request.FILES:
> print('found it')
> profile.profile_pic = request.FILES['profile_pic']
> profile.save()
> registered = True
> else:
> print(user_form.errors, profile_form.errors)
> else:
> user_form = UserForm()
> profile_form = ClubInfoForm()
> return render(request,
>   'registration.html',
>   {'user_form': user_form,
>'profile_form': profile_form,
>'registered': registered})
>
>
> *Models for club info used upon registration and the model I want to 
> update when a new user is created:*
>
> class ClubInfo(models.Model):
>
> user = models.OneToOneField(User, on_delete=models.CASCADE)
> club_name = models.CharField(max_length=50, default='', unique=True)
> club_logo = models.ImageField(upload_to='profile_pics', blank=True)
> club_address1 = models.CharField(max_length=30)
> club_address2 = models.CharField(max_length=30, default='')
> club_address3 = models.CharField(max_length=30, default='')
> club_town = models.CharField(max_length=30)
> club_county = models.CharField(max_length=30)
> club_country = models.CharField(max_length=30)
> created_date = models.DateTimeField(default=timezone.now)
>
> def set_default_packages(sender, **kwargs):
> if kwargs['created']:
> ClubPackages.objects.create(club_id=kwargs['instance'])
>
> post_save.connect(set_default_packages, sender=club_name)
>
> def __str__(self):
> return self.club_name
>
>
> class ClubPackages(models.Model):
>
> club_id = models.ForeignKey(ClubInfo, on_delete=models.CASCADE)
> PACKAGE_STATUS = (
> ('0', 'Active'),
> ('1', 'Not Active')
> )
> player_register_package = models.CharField(default='1', max_length=1, 
> choices=PACKAGE_STATUS)
> player_register_price = models.DecimalField(default=100.00, max_digits=8, 
> decimal_places=2)
> player_register_expiry = models.DateField(default=timezone.now)
> roster_package = models.CharField(default='1', max_length=1, 
> choices=PACKAGE_STATUS)
> roster_price = models.DecimalField(default=50.00, max_digits=8, 
> decimal_places=2)
> roster_expiry = models.DateField(default=timezone.now)
> rent_a_pitch_package = models.CharField(default='1', max_length=1, 
> choices=PACKAGE_STATUS)
> rent_a_pitch_price = models.DecimalField(default=100.00, max_digits=8, 
> decimal_places=2)
> rent_a_pitch_expiry = models.DateField(default=timezone.now)
> shop_package = models.CharField(default='1', max_length=1, 
> choices=PACKAGE_STATUS)
> shop_price = models.DecimalField(default=50.00, max_digits=8, 
> decimal_places=2)
> shop_expiry = models.DateField(default=timezone.now).
>
>
> *Séanadh Ríomhphoist/Email DisclaimerTá an ríomhphost seo agus aon 

Re: how to create a Django project without using an IDE, but using the django-admin startproject command

2019-03-10 Thread nm
As others have pointed out, the problem might be not having your virtual 
env activated.
If it's your first time with Django, there are very clear installation and 
set-up instructions in the Django Girls tutorial - also for Windows. I 
highly recommend it for a start.

On a side note, I'd also recommend using Python 3.x and Django 2.1, if you 
can. Django 1.6 has not been supported for 4 years now, and Python 2.7 
support is going to be dropped soon... and I suppose Django 1.6 may not be 
compatible with Python 3.7 ;)

On Saturday, 9 March 2019 19:15:01 UTC+1, Ando Rakotomanana wrote:
>
> Hello, I'm still starting with django. And I have a problem with the 
> creation of the project, I write: "django-admin startproject DjangoTest" in 
> the cmd of my windows and it tells me that django-admin is not an internal 
> command. While I typed the same code this morning in the cmd and it worked. 
> And I do not understand why?
> I have python 2.7.0 and 3.7.2 and django 1.6.2 installed on my windows 8.1
>

-- 
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/cc6f05e6-a926-4137-b234-3d2563139b7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Using sessions key variables as a url argument

2019-03-10 Thread Gavin Boyle
Hi all,

I am not sure if this is possible as I could find nothing online but would
appreciate any alternative solution.

   - In my view I obtain a pk which is set as a session key
   - I need to pass that session key variable into the url argument.

e.g. http://127.0.0.1:8000/club_home//teams/

Code below, any other samples of code needed let me know

Thanks
Gav

*Main Urls*

urlpatterns = [
url('admin/', admin.site.urls),
url(r'^club_home/', include('clubkit.clubs.urls'), name='clubs'),
]

*Urls.py*

urlpatterns = [
path('', views.club_home, name='club_home'),
path('teams/', views.TeamInfo.as_view(), name='teams'),
path('pitches/', views.PitchInfo.as_view(), name='pitches'),
]

*View.py:*

def club_home(request, pk=None):
if pk:
request.session['pk'] = pk
club = ClubInfo.objects.filter(pk=pk)
club_posts = ClubPosts.objects.filter(club_id=club[0])
else:
club_pk = request.session.get('pk')
club = ClubInfo.objects.filter(pk=club_pk)
club_posts = ClubPosts.objects.filter(club_id=club[0])
args = {'club': club,
'club_posts': club_posts
}
return render(request, 'club_home_page.html', args)

-- 
__

Séanadh Ríomhphoist/_

Email Disclaimer__
**

Tá an ríomhphost seo agus 
aon chomhad a sheoltar leis faoi rún agus is lena úsáid ag an seolaí agus 
sin amháin é. Is féidir tuilleadh a léamh anseo. 
  
*
_

This e-mail and any 
files transmitted with it are confidential and are intended solely for use 
by the addressee. Read more here. 
 _
*_

-- 
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/CAHZR7Jfbaf91WFE47EaqqjNch3dqVd-_9%2BLd8FUAPcuNOBFhww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Link does not work correctly

2019-03-10 Thread Barkalez XX

In the browser, when I'm in "http://127.0.0.1:8000/; and click in register 
it takes me to "http://127.0.0.1:8000/register; and it works correctly, but 
if I'm in "http: //127.0.0.1:8000/about/ "and click on register takes me 
to" http://127.0.0.1:8000/about/register/ "instead of" 
http://127.0.0.1:8000/register " . My project : 
https://github.com/barkalez/recetas

-- 
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/f77b7e65-3e0c-4f29-b951-d052e669fe20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Do not render empty fields

2019-03-10 Thread Barkalez XX
Hello guys,

 I'm learning django and I have some doubts, I suppose that from now on 
you'll see me a lot here because my doubts are endless :).

I'm doing a simple recipe app, and some recipes have more ingredients than 
others and when I render them, empty fields take up space in the rendered 
HTML. I show you how the HTML is. I also include the repo in github.

https://github.com/barkalez/recetas



[image: Duda1.png]

-- 
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/2c9c280f-0ae2-4e2d-b9d1-3de7e95369df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to create a Django project without using an IDE, but using the django-admin startproject command

2019-03-10 Thread Sam Taiwo
Make sure your virtual environment is activated, you have to activate it
each time you create a new terminal.

Also contrary to what someone else said, you can use django-admin anywhere,
while you must be in the correct directory to run the manage.py file

On Sun, Mar 10, 2019, 07:38 abel otugeme  wrote:

> Make sure your virtual environments are set up well.  Also make sure your
> running that command from the folder where your manage.py file is...
> On Mar 9, 2019 7:12 PM, "Ando Rakotomanana" 
> wrote:
> >
> > Hello, I'm still starting with django. And I have a problem with the
> creation of the project, I write: "django-admin startproject DjangoTest" in
> the cmd of my windows and it tells me that django-admin is not an internal
> command. While I typed the same code this morning in the cmd and it worked.
> And I do not understand why?
> > I have python 2.7.0 and 3.7.2 and django 1.6.2 installed on my windows
> 8.1
> >
> > --
> > 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/8bc18725-3935-4740-9b08-4964b686ddf1%40googlegroups.com
> .
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/CAMrS0S8j4kMGc3sNYKX2G7E6tuzB%3DVS5dPWYTzJR__ZxZnMx2A%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAHKA7fBhZycKc9BCgyRqU8pqpHWHuZ5RWXt2exv%2Bitcg3u6Q7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to create a Django project without using an IDE, but using the django-admin startproject command

2019-03-10 Thread Ando Rakotomanana
ok, i will try to reconfigure the virtual environment

Le samedi 9 mars 2019 21:15:01 UTC+3, Ando Rakotomanana a écrit :
>
> Hello, I'm still starting with django. And I have a problem with the 
> creation of the project, I write: "django-admin startproject DjangoTest" in 
> the cmd of my windows and it tells me that django-admin is not an internal 
> command. While I typed the same code this morning in the cmd and it worked. 
> And I do not understand why?
> I have python 2.7.0 and 3.7.2 and django 1.6.2 installed on my windows 8.1
>

-- 
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/97647979-e42f-4593-9c8b-f0c5809d06ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: my first post: makemigrations polls App 'polls' could not be found. Is it in INSTALLED_APPS?

2019-03-10 Thread Varun Sagar
from django.apps import AppConfig

#Add this in your'e apps.py if you haven't
class PollsConfig(AppConfig):
name = 'polls'



On Sat, Mar 9, 2019 at 6:35 PM maior marso  wrote:

> https://docs.djangoproject.com/en/2.1/intro/tutorial02/
> Activating Models
> After editing polls/.models.py, and updating mysite/
> settings.py/installed_apps
>  With ‘polls.apps.PollsConfig’, and changing the time_zone,
> Ran the python manage.py makemigrations polls
> Results: " App 'polls' could not be found. Is it in INSTALLED_APPS? "
> And there was no file in the polls/migrations/* __init__.py
>
> --
> 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/CAF%3D9sHSaUdsGwodZy1roeGBKfv4Sf0Gn3%2B-BxpaqmKSkRwrEcA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CANPvx49UvCMr%3D%3D6FrV_P-Z%2B85bL4FQSp3RiojNJ3og%2BdkvXbUg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.