Error

2018-01-26 Thread 'Anoosha Masood Keen' via Django users
Working with ticket 
#29039 *Error:*
 if name.startswith('.'):
AttributeError: 'NoneType' object has no attribute 'startswith'
*CODE added to settings.py:*


MIGRATION_MODULES = {}
for app in INSTALLED_APPS:
if app:
MIGRATION_MODULES[app] = None
print (MIGRATION_MODULES[app])


-- 
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/bb0143ba-9b20-4df6-a222-bc4e37c376bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Contributing to Django

2018-01-24 Thread 'Anoosha Masood Keen' via Django users
Hi,
   I have assigned a ticket to myself. Now what do I need to do ? Fork 
django project and create branch for that ticket and push it ? Am I right? 

-- 
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/6e715641-d6aa-4cdd-8ba4-a2f0a4f57fc2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: PostrgreSQL Inside Virtualenv

2018-01-24 Thread 'Anoosha Masood Keen' via Django users
Install it on your computer.

On Wednesday, January 24, 2018 at 8:49:17 AM UTC, tangoward15 wrote:
>
>
> Hi,
>
>
> Newbie question, since I installed django and pillow inside virtualenv, 
> shall I also install PostgreSQL inside Virtualenv? At the moment I am still 
> using SQLite in my pet project.
>
>
> Regards,
> Jarvis
>
>
>

-- 
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/962726a2-e3b3-4ee1-b81b-c1227656b7da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: unable to save object Django (2.0)

2018-01-24 Thread 'Anoosha Masood Keen' via Django users
Try this in models.py file
















*class personmanager(models.Model):notes = models.TextField()link = 
models.URLField()number = models.IntegerField()def 
create_person(self,note,link,number):self.notes=note
self.link=linkself.number=numberreturn selfdef 
__str__(self):return self.notesobject = 
personmanager()a=object.create_person("this","c.com",1);a.save()*

On Tuesday, January 23, 2018 at 8:10:00 PM UTC, harsh sharma wrote:
>
> i am trying to save the basic information about a person 
> i have created a model form for it but i am unable to save the object 
> (unable to update the database)
>
> here is my views file
>
> @login_required
> def dashboard(request):
> if request.method=="post":
> form = linkform(request.POST)
> if form.is_valid():
> try:
> notes = form.cleaned_data['note']
> link = form.cleaned_data['link']
> number = form.cleaned_data['number']
> perso = person.object.create_person(notes,link,number)
> perso.save()
> return HttpResponse('succeess')
> except:
> return HttpResponse('can not create object')
> else:
> return HttpResponse('bad form')
> else:
> form = linkform(request.POST)
> return render(request, 'dashboard.html', {'form':form})
>
>
> here is my model file :
>
> class personmanager(models.Manager):
> def create_person(self,note,link,number):
> pers = self.create(note=note,link=link,number=number)
> return pers
>
>
>
> class person(models.Model):
> notes = models.TextField()
> link = models.URLField()
> number = models.IntegerField()
> object = personmanager()
>
>

-- 
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/29d485ff-544d-48d6-bf2a-9170b0ba77e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: PostrgreSQL Inside Virtualenv

2018-01-24 Thread 'Anoosha Masood Keen' via Django users

Hi tangoward15. No need to install PostgreSQl at this stage. Just continue 
with the tutorial. SQLite works fine.
On Wednesday, January 24, 2018 at 8:49:17 AM UTC, tangoward15 wrote:
>
>
> Hi,
>
>
> Newbie question, since I installed django and pillow inside virtualenv, 
> shall I also install PostgreSQL inside Virtualenv? At the moment I am still 
> using SQLite in my pet project.
>
>
> Regards,
> Jarvis
>
>
>

-- 
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/5a31147a-423c-4cd9-8caf-f443aa75f45f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: new to Django

2017-03-06 Thread 'Anoosha Masood Keen' via Django users
Hi I am new to Django and I don't know where to start or what to do for 
contribution?

On Sunday, March 5, 2017 at 10:58:09 PM UTC+5, jayant jain wrote:
>
> Hi all users,
> I am a new user of* Django*
> with a basic knowledge of * Python* language .Please recommend *me what 
> more to learn* to start contributing to Django and how to 
> *start contributing.Example if *i do need to know about networking, GUI 
> ,etc.
>
>

-- 
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/fec204cf-496d-4c9d-bd7d-3a20d49ad580%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.